mirror of
https://github.com/Iconica-Development/flutter_start.git
synced 2025-05-19 02:23:46 +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,
|
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,
|
||||||
|
|
Loading…
Reference in a new issue