Showing
2 changed files
with
4 additions
and
3 deletions
@@ -75,6 +75,7 @@ Other related apis: | @@ -75,6 +75,7 @@ Other related apis: | ||
75 | ScreenUtil.screenHeight //Device height | 75 | ScreenUtil.screenHeight //Device height |
76 | ScreenUtil.bottomBarHeight //Bottom safe zone distance, suitable for buttons with full screen | 76 | ScreenUtil.bottomBarHeight //Bottom safe zone distance, suitable for buttons with full screen |
77 | ScreenUtil.statusBarHeight //Status bar height , Notch will be higher Unit px | 77 | ScreenUtil.statusBarHeight //Status bar height , Notch will be higher Unit px |
78 | + ScreenUtil.textScaleFactory //System font scaling factor | ||
78 | 79 | ||
79 | ScreenUtil().scaleWidth //The width is enlarged relative to the design draft | 80 | ScreenUtil().scaleWidth //The width is enlarged relative to the design draft |
80 | ScreenUtil().scaleHeight //Height relative to the magnification of the design draft | 81 | ScreenUtil().scaleHeight //Height relative to the magnification of the design draft |
@@ -153,7 +154,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | @@ -153,7 +154,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart'; | ||
153 | SizedBox( | 154 | SizedBox( |
154 | height: ScreenUtil().setHeight(200), | 155 | height: ScreenUtil().setHeight(200), |
155 | ), | 156 | ), |
156 | - Text('System font scaling:${ScreenUtil.textScaleFactory}'), | 157 | + Text('System font scaling factor:${ScreenUtil.textScaleFactory}'), |
157 | Column( | 158 | Column( |
158 | crossAxisAlignment: CrossAxisAlignment.start, | 159 | crossAxisAlignment: CrossAxisAlignment.start, |
159 | children: <Widget>[ | 160 | children: <Widget>[ |
@@ -43,7 +43,7 @@ class _MyHomePageState extends State<MyHomePage> { | @@ -43,7 +43,7 @@ class _MyHomePageState extends State<MyHomePage> { | ||
43 | 'Width is enlarged relative to the design draft:${ScreenUtil().scaleWidth}'); //The width is enlarged relative to the design draft | 43 | 'Width is enlarged relative to the design draft:${ScreenUtil().scaleWidth}'); //The width is enlarged relative to the design draft |
44 | print( | 44 | print( |
45 | 'Height is enlarged relative to the design draft:${ScreenUtil().scaleHeight}'); //The height is enlarged relative to the design draft | 45 | 'Height is enlarged relative to the design draft:${ScreenUtil().scaleHeight}'); //The height is enlarged relative to the design draft |
46 | - print('System font scaling:${ScreenUtil.textScaleFactory}'); | 46 | + print('System font scaling factor:${ScreenUtil.textScaleFactory}'); |
47 | 47 | ||
48 | return new Scaffold( | 48 | return new Scaffold( |
49 | appBar: new AppBar( | 49 | appBar: new AppBar( |
@@ -93,7 +93,7 @@ class _MyHomePageState extends State<MyHomePage> { | @@ -93,7 +93,7 @@ class _MyHomePageState extends State<MyHomePage> { | ||
93 | SizedBox( | 93 | SizedBox( |
94 | height: ScreenUtil().setHeight(200), | 94 | height: ScreenUtil().setHeight(200), |
95 | ), | 95 | ), |
96 | - Text('System font scaling:${ScreenUtil.textScaleFactory}'), | 96 | + Text('System font scaling factor:${ScreenUtil.textScaleFactory}'), |
97 | Column( | 97 | Column( |
98 | crossAxisAlignment: CrossAxisAlignment.start, | 98 | crossAxisAlignment: CrossAxisAlignment.start, |
99 | children: <Widget>[ | 99 | children: <Widget>[ |
-
Please register or login to post a comment