From ea1f38437088e9455302f142eaa3cb40cbb69457 Mon Sep 17 00:00:00 2001 From: Sai Naw Wun Date: Mon, 12 Oct 2020 09:00:22 +0630 Subject: [PATCH] fix staff mode sharepref --- lib/pages/main/home_page.dart | 3 ++- pubspec.yaml | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/pages/main/home_page.dart b/lib/pages/main/home_page.dart index d0d18fa..e204808 100644 --- a/lib/pages/main/home_page.dart +++ b/lib/pages/main/home_page.dart @@ -90,7 +90,7 @@ class _HomePageState extends State { if (isCustomer) { isFcs[0] = false; } else { - isFcs[0] = staffMode; + isFcs[0] = staffMode ?? false; } }); } @@ -341,6 +341,7 @@ class _HomePageState extends State { final fcsToggle = ToggleButtons( selectedColor: Colors.white, + color: Colors.blue, children: [ Icon(MaterialCommunityIcons.worker), ], diff --git a/pubspec.yaml b/pubspec.yaml index 350d597..433121e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ name: fcs description: FCS Logistics publish_to: 'none' # Remove this line if you wish to publish to pub.dev -version: 1.0.0+2 +version: 1.0.0+3 environment: sdk: ">=2.7.0 <3.0.0"