Skip to content

Commit fb1dcfb

Browse files
author
李卓原
committed
2.3
1 parent e80d619 commit fb1dcfb

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

example/lib/main.dart

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,11 @@ class MyApp extends StatelessWidget {
1919
}
2020
}
2121

22-
class MyHomePage extends StatefulWidget {
23-
@override
24-
_MyHomePageState createState() => _MyHomePageState();
25-
}
26-
27-
class _MyHomePageState extends State<MyHomePage> {
22+
class MyHomePage extends StatelessWidget {
2823
@override
2924
Widget build(BuildContext context) {
3025
//Set the fit size (fill in the screen size of the device in the design) If the design is based on the size of the iPhone6 ​​(iPhone6 ​​750*1334)
3126
ScreenUtil.init(context, width: 750, height: 1334, allowFontScaling: false);
32-
3327
return ExampleWidget(title: 'FlutterScreenUtil Demo');
3428
}
3529
}
@@ -46,7 +40,7 @@ class ExampleWidget extends StatefulWidget {
4640
class _ExampleWidgetState extends State<ExampleWidget> {
4741
@override
4842
Widget build(BuildContext context) {
49-
//printScreenInformation();
43+
printScreenInformation();
5044
return Scaffold(
5145
appBar: AppBar(
5246
title: Text(widget.title),

0 commit comments

Comments
 (0)