mirror of
https://github.com/Iconica-Development/flutter_introduction.git
synced 2025-05-18 19:43:44 +02:00
feat: changes for safino
This commit is contained in:
parent
682bb99812
commit
33c607080e
1 changed files with 6 additions and 3 deletions
|
@ -11,7 +11,7 @@ class Introduction extends StatefulWidget {
|
||||||
const Introduction({
|
const Introduction({
|
||||||
required this.navigateTo,
|
required this.navigateTo,
|
||||||
required this.options,
|
required this.options,
|
||||||
required this.child,
|
this.child,
|
||||||
this.physics,
|
this.physics,
|
||||||
this.service,
|
this.service,
|
||||||
super.key,
|
super.key,
|
||||||
|
@ -21,7 +21,7 @@ class Introduction extends StatefulWidget {
|
||||||
final IntroductionService? service;
|
final IntroductionService? service;
|
||||||
final IntroductionOptions options;
|
final IntroductionOptions options;
|
||||||
final ScrollPhysics? physics;
|
final ScrollPhysics? physics;
|
||||||
final Widget child;
|
final Widget? child;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
State<Introduction> createState() => _IntroductionState();
|
State<Introduction> createState() => _IntroductionState();
|
||||||
|
@ -59,7 +59,10 @@ class _IntroductionState extends State<Introduction> {
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
return widget.child;
|
WidgetsBinding.instance!.addPostFrameCallback((_) {
|
||||||
|
widget.navigateTo();
|
||||||
|
});
|
||||||
|
return widget.child ?? const CircularProgressIndicator();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue