mirror of
https://github.com/Iconica-Development/flutter_start.git
synced 2025-05-18 18:13:45 +02:00
refactor: rename myFunction in splashscreen function to splashHandler
This commit is contained in:
parent
c9bc617ed0
commit
51046aff1f
1 changed files with 4 additions and 3 deletions
|
@ -19,9 +19,11 @@ Widget _splashScreen(
|
|||
BuildContext context,
|
||||
) {
|
||||
var navigator = Navigator.of(context);
|
||||
|
||||
var isAllowedToPassThrough = false;
|
||||
var introductionSeen = false;
|
||||
Future<void> myFunction() async {
|
||||
|
||||
Future<void> splashHandler() async {
|
||||
await Future.wait<void>(
|
||||
[
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue