File tree Expand file tree Collapse file tree 4 files changed +12
-5
lines changed
Expand file tree Collapse file tree 4 files changed +12
-5
lines changed Original file line number Diff line number Diff line change 1+ # 5.0.0-nullsafety.8
2+ - merge v4
3+ - Add a method to get the screen orientation
14
25# 5.0.0-nullsafety.7
36- fix #221
Original file line number Diff line number Diff line change @@ -125,7 +125,12 @@ class ScreenUtil {
125125 ///Font size adaptation method
126126 ///- [fontSize] The size of the font on the UI design, in dp.
127127 ///- [allowFontScaling]
128- double setSp (num fontSize, {bool ? allowFontScalingSelf}) => allowFontScalingSelf == null
129- ? (allowFontScaling ? (fontSize * scaleText) * _textScaleFactor : (fontSize * scaleText))
130- : (allowFontScalingSelf ? (fontSize * scaleText) * _textScaleFactor : (fontSize * scaleText));
128+ double setSp (num fontSize, {bool ? allowFontScalingSelf}) =>
129+ allowFontScalingSelf == null
130+ ? (allowFontScaling
131+ ? (fontSize * scaleText) * _textScaleFactor
132+ : (fontSize * scaleText))
133+ : (allowFontScalingSelf
134+ ? (fontSize * scaleText) * _textScaleFactor
135+ : (fontSize * scaleText));
131136}
Original file line number Diff line number Diff line change 11import 'package:flutter/material.dart' ;
22import 'package:flutter_screenutil/screen_util.dart' ;
33
4-
54class ScreenUtilInit extends StatelessWidget {
65 /// A helper widget that initializes [ScreenUtil]
76 ScreenUtilInit ({
Original file line number Diff line number Diff line change 11name : flutter_screenutil
22description : A flutter plugin for adapting screen and font size.Guaranteed to look good on different models
3- version : 5.0.0-nullsafety.7
3+ version : 5.0.0-nullsafety.8
44homepage : https://github.com/OpenFlutter/flutter_screenutil
55
66environment :
You can’t perform that action at this time.
0 commit comments