From 36d45299a884e86bd538d38471a2f2075eb39b69 Mon Sep 17 00:00:00 2001 From: Omar Toutounji Date: Fri, 3 Nov 2023 15:52:13 -0400 Subject: [PATCH] fixed a bug with onboarding --- lib/screens/hwyd.dart | 6 +++--- pubspec.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/screens/hwyd.dart b/lib/screens/hwyd.dart index 7c46882..5eaf5a5 100644 --- a/lib/screens/hwyd.dart +++ b/lib/screens/hwyd.dart @@ -30,8 +30,8 @@ class _HwydState extends State { _checkOnboardStatus() async { SharedPreferences prefs = await SharedPreferences.getInstance(); setState(() { - showOnboard = true; - // jsonDecode(prefs.getString(_onBoardKey) ?? json.encode(true)); + showOnboard = + jsonDecode(prefs.getString(_onBoardKey) ?? json.encode(true)); }); } @@ -58,7 +58,7 @@ class _HwydState extends State { Widget _buildIntroductionScreen() { return CupertinoOnboarding( onPressedOnLastPage: () { - // _disableOnboard(); + _disableOnboard(); Navigator.pushReplacementNamed(context, '/journal'); }, widgetAboveBottomButton: CupertinoButton( diff --git a/pubspec.yaml b/pubspec.yaml index e8ad0e2..85a71e9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,7 @@ name: hwyd description: hwyd is the world's first nano journal. Simple. Focused. Beautiful. All you'll want to do is write your heart out. publish_to: 'none' -version: 1.6.0+1 +version: 1.7.0+1 environment: sdk: '>=3.1.4 <4.0.0'