Skip to content

Commit 551af5f

Browse files
committed
update Example
1 parent a8ae4f9 commit 551af5f

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

example/lib/main.dart

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,16 @@ class MyApp extends StatelessWidget {
2828
// This widget is the root of your application.
2929
@override
3030
Widget build(BuildContext context) {
31-
return FlutterEasyLoading(
32-
child: MaterialApp(
33-
title: 'Flutter EasyLoading',
34-
theme: ThemeData(
35-
primarySwatch: Colors.blue,
36-
),
37-
home: MyHomePage(title: 'Flutter EasyLoading'),
31+
return MaterialApp(
32+
title: 'Flutter EasyLoading',
33+
theme: ThemeData(
34+
primarySwatch: Colors.blue,
3835
),
36+
builder: (BuildContext context, Widget child) {
37+
return FlutterEasyLoading(
38+
child: MyHomePage(title: 'Flutter EasyLoading'),
39+
);
40+
},
3941
);
4042
}
4143
}
@@ -76,6 +78,7 @@ class _MyHomePageState extends State<MyHomePage> {
7678
crossAxisAlignment: CrossAxisAlignment.center,
7779
mainAxisAlignment: MainAxisAlignment.start,
7880
children: <Widget>[
81+
TextField(),
7982
Column(
8083
children: <Widget>[
8184
FlatButton(

0 commit comments

Comments
 (0)