Skip to content

Commit

Permalink
chore: Move app modes after news for now in icon order
Browse files Browse the repository at this point in the history
  • Loading branch information
qdot committed Mar 16, 2024
1 parent 96d8bcf commit 61e5e43
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions lib/widget/body_widget.dart
Expand Up @@ -37,16 +37,6 @@ class BodyWidget extends StatelessWidget {
var assets = BlocProvider.of<AssetCubit>(context);

var destinations = [
// Control page navigation removed until repeater mode is like, actually tested at all.
NavigationDestination(
(state) => state is NavigationStateAppControl,
(NavigationCubit cubit) => cubit.goAppControl(),
const Icon(Icons.play_circle_outlined),
const Icon(Icons.play_circle),
'Controls',
() => const AppControlPage(),
true,
true),
NavigationDestination(
(state) => state is NavigationStateNews,
(NavigationCubit cubit) => cubit.goNews(),
Expand All @@ -58,6 +48,15 @@ class BodyWidget extends StatelessWidget {
builder: (context, state) => MarkdownWidget(markdownContent: assets.newsAsset, backToSettings: false)),
true,
true),
NavigationDestination(
(state) => state is NavigationStateAppControl,
(NavigationCubit cubit) => cubit.goAppControl(),
const Icon(Icons.play_circle_outlined),
const Icon(Icons.play_circle),
'App Modes',
() => const AppControlPage(),
true,
true),
NavigationDestination(
(state) => state is NavigationStateDeviceControl,
(NavigationCubit cubit) => cubit.goDeviceControl(),
Expand Down

0 comments on commit 61e5e43

Please sign in to comment.