|
|
@ -90,7 +90,7 @@ class PuzzleHomeState extends State
|
|
|
|
providers: [
|
|
|
|
providers: [
|
|
|
|
Provider<AppState>.value(value: this),
|
|
|
|
Provider<AppState>.value(value: this),
|
|
|
|
ListenableProvider<PuzzleControls>.value(
|
|
|
|
ListenableProvider<PuzzleControls>.value(
|
|
|
|
listenable: _autoPlayListenable,
|
|
|
|
value: _autoPlayListenable,
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|
child: Material(
|
|
|
|
child: Material(
|
|
|
@ -222,17 +222,14 @@ Widget _doBuildCore(bool small) => ValueTabController<SharedTheme>(
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
margin:
|
|
|
|
margin: const EdgeInsets.symmetric(horizontal: 20),
|
|
|
|
const EdgeInsets.symmetric(horizontal: 20),
|
|
|
|
|
|
|
|
child: TabBar(
|
|
|
|
child: TabBar(
|
|
|
|
controller: ValueTabController.of(context),
|
|
|
|
controller: ValueTabController.of(context),
|
|
|
|
labelPadding:
|
|
|
|
labelPadding: const EdgeInsets.fromLTRB(0, 20, 0, 12),
|
|
|
|
const EdgeInsets.fromLTRB(0, 20, 0, 12),
|
|
|
|
|
|
|
|
labelColor: theme.puzzleAccentColor,
|
|
|
|
labelColor: theme.puzzleAccentColor,
|
|
|
|
indicatorColor: theme.puzzleAccentColor,
|
|
|
|
indicatorColor: theme.puzzleAccentColor,
|
|
|
|
indicatorWeight: 1.5,
|
|
|
|
indicatorWeight: 1.5,
|
|
|
|
unselectedLabelColor:
|
|
|
|
unselectedLabelColor: Colors.black.withOpacity(0.6),
|
|
|
|
Colors.black.withOpacity(0.6),
|
|
|
|
|
|
|
|
tabs: themes
|
|
|
|
tabs: themes
|
|
|
|
.map((st) => Text(
|
|
|
|
.map((st) => Text(
|
|
|
|
st.name.toUpperCase(),
|
|
|
|
st.name.toUpperCase(),
|
|
|
@ -248,9 +245,7 @@ Widget _doBuildCore(bool small) => ValueTabController<SharedTheme>(
|
|
|
|
padding: const EdgeInsets.all(10),
|
|
|
|
padding: const EdgeInsets.all(10),
|
|
|
|
child: Flow(
|
|
|
|
child: Flow(
|
|
|
|
delegate: PuzzleFlowDelegate(
|
|
|
|
delegate: PuzzleFlowDelegate(
|
|
|
|
small
|
|
|
|
small ? const Size(90, 90) : const Size(140, 140),
|
|
|
|
? const Size(90, 90)
|
|
|
|
|
|
|
|
: const Size(140, 140),
|
|
|
|
|
|
|
|
appState.puzzle,
|
|
|
|
appState.puzzle,
|
|
|
|
appState.animationNotifier,
|
|
|
|
appState.animationNotifier,
|
|
|
|
),
|
|
|
|
),
|
|
|
@ -265,8 +260,7 @@ Widget _doBuildCore(bool small) => ValueTabController<SharedTheme>(
|
|
|
|
Container(
|
|
|
|
Container(
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
decoration: const BoxDecoration(
|
|
|
|
border: Border(
|
|
|
|
border: Border(
|
|
|
|
top: BorderSide(
|
|
|
|
top: BorderSide(color: Colors.black26, width: 1),
|
|
|
|
color: Colors.black26, width: 1),
|
|
|
|
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
|
padding: const EdgeInsets.only(
|
|
|
@ -276,8 +270,8 @@ Widget _doBuildCore(bool small) => ValueTabController<SharedTheme>(
|
|
|
|
right: 10,
|
|
|
|
right: 10,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
child: Consumer<PuzzleControls>(
|
|
|
|
child: Consumer<PuzzleControls>(
|
|
|
|
builder: (_, controls, __) => Row(
|
|
|
|
builder: (_, controls, __) =>
|
|
|
|
children: theme.bottomControls(controls)),
|
|
|
|
Row(children: theme.bottomControls(controls)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
)
|
|
|
|
)
|
|
|
|
],
|
|
|
|
],
|
|
|
|