Skip to content

Commit

Permalink
fix #6 welcome screen alpha 0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurBeaulieu committed Jun 21, 2024
1 parent c729562 commit 8c51b7e
Show file tree
Hide file tree
Showing 16 changed files with 562 additions and 46 deletions.
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ android {
multiDexEnabled true
minSdkVersion 20
versionCode 2
versionName "0.0.2"
versionName "0.0.3"
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
Expand Down
Binary file added assets/images/help/map.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/help/mark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/help/new.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion lib/src/beercrackerz.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import 'package:loader_overlay/loader_overlay.dart';
import 'package:toastification/toastification.dart';

import '/src/auth/auth_view.dart';
import '/src/help/welcome_screen_view.dart';
import '/src/map/map_view.dart';
import '/src/settings/settings_controller.dart';
import '/src/settings/settings_view.dart';
Expand Down Expand Up @@ -94,10 +95,19 @@ class BeerCrackerzMobile extends StatelessWidget {
settingsController: settingsController,
);
case MapView.routeName:
default:
return MapView(
settingsController: settingsController,
);
default:
// Redirect to MapView if pref set to false
if (settingsController.showWelcomeScreen == false) {
return MapView(
settingsController: settingsController,
);
}
return WelcomeScreenView(
settingsController: settingsController,
);
}
},
);
Expand Down
Loading

0 comments on commit 8c51b7e

Please sign in to comment.