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
1
4
2
5
# 5.0.0-nullsafety.7
3
6
- fix #221
Original file line number Diff line number Diff line change @@ -125,7 +125,12 @@ class ScreenUtil {
125
125
///Font size adaptation method
126
126
///- [fontSize] The size of the font on the UI design, in dp.
127
127
///- [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));
131
136
}
Original file line number Diff line number Diff line change 1
1
import 'package:flutter/material.dart' ;
2
2
import 'package:flutter_screenutil/screen_util.dart' ;
3
3
4
-
5
4
class ScreenUtilInit extends StatelessWidget {
6
5
/// A helper widget that initializes [ScreenUtil]
7
6
ScreenUtilInit ({
Original file line number Diff line number Diff line change 1
1
name : flutter_screenutil
2
2
description : 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
4
4
homepage : https://github.com/OpenFlutter/flutter_screenutil
5
5
6
6
environment :
You can’t perform that action at this time.
0 commit comments