diff --git a/lib/src/user_stories/flutter_start_userstory_navigator.dart b/lib/src/user_stories/flutter_start_userstory_navigator.dart index 701a552..999a183 100644 --- a/lib/src/user_stories/flutter_start_userstory_navigator.dart +++ b/lib/src/user_stories/flutter_start_userstory_navigator.dart @@ -19,9 +19,11 @@ Widget _splashScreen( BuildContext context, ) { var navigator = Navigator.of(context); + var isAllowedToPassThrough = false; var introductionSeen = false; - Future myFunction() async { + + Future splashHandler() async { await Future.wait( [ configuration.splashScreenFuture?.call(context) ?? Future.value(), @@ -42,7 +44,6 @@ Widget _splashScreen( Duration( seconds: configuration.minimumSplashScreenDuration, ), - () async {}, ), ], ); @@ -65,7 +66,7 @@ Widget _splashScreen( return configuration.splashScreenBuilder?.call( context, - () async => myFunction(), + splashHandler, ) ?? Scaffold( backgroundColor: configuration.splashScreenBackgroundColor,