Skip to content

Commit

Permalink
Fixed rebuild of bottom Nav bar!
Browse files Browse the repository at this point in the history
  • Loading branch information
Clon1998 committed Nov 23, 2022
1 parent 0ca25c2 commit f8a6dd6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/ui/screens/dashboard/dashboard_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ import 'package:mobileraker/service/moonraker/printer_service.dart';
import 'package:mobileraker/service/selected_machine_service.dart';
import 'package:mobileraker/service/ui/bottom_sheet_service.dart';
import 'package:mobileraker/service/ui/dialog_service.dart';
import 'package:mobileraker/ui/components/selected_printer_app_bar.dart';
import 'package:mobileraker/ui/components/connection/connection_state_view.dart';
import 'package:mobileraker/ui/components/drawer/nav_drawer_view.dart';
import 'package:mobileraker/ui/components/ems_button.dart';
import 'package:mobileraker/ui/components/machine_state_indicator.dart';
import 'package:mobileraker/ui/components/selected_printer_app_bar.dart';
import 'package:mobileraker/ui/screens/dashboard/tabs/control_tab.dart';
import 'package:mobileraker/ui/screens/dashboard/tabs/general_tab.dart';
import 'package:mobileraker/util/extensions/async_ext.dart';
Expand Down Expand Up @@ -112,10 +112,10 @@ class _BottomNavigationBar extends ConsumerWidget {
var colorScheme = themeData.colorScheme;

if (ref
.watch(machinePrinterKlippySettingsProvider)
.valueOrFullNull
?.machine ==
null) {
.watch(
machinePrinterKlippySettingsProvider.selectAs((data) => true))
.valueOrFullNull !=
true) {
return const SizedBox.shrink();
}

Expand Down

0 comments on commit f8a6dd6

Please sign in to comment.