Skip to content

Commit

Permalink
Merge pull request #30 from omartoutounji/omartoutounji/bug-fix
Browse files Browse the repository at this point in the history
#29: fixed a bug with onboarding
  • Loading branch information
omartoutounji authored Nov 3, 2023
2 parents 9c4fb5c + 36d4529 commit f1c785a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/screens/hwyd.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class _HwydState extends State<Hwyd> {
_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));
});
}

Expand All @@ -58,7 +58,7 @@ class _HwydState extends State<Hwyd> {
Widget _buildIntroductionScreen() {
return CupertinoOnboarding(
onPressedOnLastPage: () {
// _disableOnboard();
_disableOnboard();
Navigator.pushReplacementNamed(context, '/journal');
},
widgetAboveBottomButton: CupertinoButton(
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit f1c785a

Please sign in to comment.