refactor: rename myFunction in splashscreen function to splashHandler

This commit is contained in:
Joey Boerwinkel 2024-04-04 09:41:31 +02:00
parent c9bc617ed0
commit 51046aff1f

View file

@ -19,9 +19,11 @@ Widget _splashScreen(
BuildContext context, BuildContext context,
) { ) {
var navigator = Navigator.of(context); var navigator = Navigator.of(context);
var isAllowedToPassThrough = false; var isAllowedToPassThrough = false;
var introductionSeen = false; var introductionSeen = false;
Future<void> myFunction() async {
Future<void> splashHandler() async {
await Future.wait<void>( await Future.wait<void>(
[ [
configuration.splashScreenFuture?.call(context) ?? Future.value(), configuration.splashScreenFuture?.call(context) ?? Future.value(),
@ -42,7 +44,6 @@ Widget _splashScreen(
Duration( Duration(
seconds: configuration.minimumSplashScreenDuration, seconds: configuration.minimumSplashScreenDuration,
), ),
() async {},
), ),
], ],
); );
@ -65,7 +66,7 @@ Widget _splashScreen(
return configuration.splashScreenBuilder?.call( return configuration.splashScreenBuilder?.call(
context, context,
() async => myFunction(), splashHandler,
) ?? ) ??
Scaffold( Scaffold(
backgroundColor: configuration.splashScreenBackgroundColor, backgroundColor: configuration.splashScreenBackgroundColor,