李卓原

ui fix

@@ -18,7 +18,7 @@ class MyApp extends StatelessWidget { @@ -18,7 +18,7 @@ class MyApp extends StatelessWidget {
18 // You can use the library anywhere in the app even in theme 18 // You can use the library anywhere in the app even in theme
19 theme: ThemeData( 19 theme: ThemeData(
20 primarySwatch: Colors.blue, 20 primarySwatch: Colors.blue,
21 - textTheme: TextTheme(bodyText2: TextStyle(fontSize: 30.sp)), 21 + textTheme: TextTheme(bodyText2: TextStyle(fontSize: 16.sp)),
22 ), 22 ),
23 home: HomePage(title: 'First Method'), 23 home: HomePage(title: 'First Method'),
24 ); 24 );
@@ -84,18 +84,12 @@ class HomePageScaffold extends StatelessWidget { @@ -84,18 +84,12 @@ class HomePageScaffold extends StatelessWidget {
84 Text('Bottom safe zone distance:${ScreenUtil().bottomBarHeight}dp'), 84 Text('Bottom safe zone distance:${ScreenUtil().bottomBarHeight}dp'),
85 Text('Status bar height:${ScreenUtil().statusBarHeight}dp'), 85 Text('Status bar height:${ScreenUtil().statusBarHeight}dp'),
86 Text( 86 Text(
87 - 'The ratio of actual width to UI design:${ScreenUtil().scaleWidth}',  
88 - textAlign: TextAlign.center,  
89 - ), 87 + 'The ratio of actual width to UI design:${ScreenUtil().scaleWidth}'),
90 Text( 88 Text(
91 - 'The ratio of actual height to UI design:${ScreenUtil().scaleHeight}',  
92 - textAlign: TextAlign.center,  
93 - ),  
94 - SizedBox(  
95 - height: 10.h,  
96 - ), 89 + 'The ratio of actual height to UI design:${ScreenUtil().scaleHeight}'),
  90 + 10.verticalSpace,
97 Text('System font scaling factor:${ScreenUtil().textScaleFactor}'), 91 Text('System font scaling factor:${ScreenUtil().textScaleFactor}'),
98 - SizedBox(height: 5), 92 + 5.verticalSpace,
99 Column( 93 Column(
100 crossAxisAlignment: CrossAxisAlignment.start, 94 crossAxisAlignment: CrossAxisAlignment.start,
101 children: <Widget>[ 95 children: <Widget>[