Skip to content

Commit 4a360b8

Browse files
committed
update example
1 parent 60559f3 commit 4a360b8

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

example/lib/main.dart

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,16 @@ class _MyHomePageState extends State<MyHomePage> {
5353
Timer _timer;
5454
double _progress;
5555

56+
@override
57+
void initState() {
58+
super.initState();
59+
60+
/// Schedule a callback for the end of this frame
61+
WidgetsBinding.instance.addPostFrameCallback((_) {
62+
EasyLoading.showSuccess('Use in initState!');
63+
});
64+
}
65+
5666
@override
5767
Widget build(BuildContext context) {
5868
return Scaffold(

0 commit comments

Comments
 (0)