Skip to content

Commit ef63346

Browse files
author
李卓原
committed
v 6.0.1
1 parent 15a6c2b commit ef63346

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 6.0.1
2+
- change useInheritedMediaQuery default value to true
3+
- update readme
4+
15
# 6.0.0
26
- remove ScreenutilInit layout listener
37

lib/src/screenutil_init.dart

+1-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ScreenUtilInit extends StatefulWidget {
3939
this.designSize = ScreenUtil.defaultSize,
4040
this.splitScreenMode = false,
4141
this.minTextAdapt = false,
42-
this.useInheritedMediaQuery = false,
42+
this.useInheritedMediaQuery = true,
4343
this.scaleByHeight = false})
4444
: super(key: key);
4545

@@ -93,7 +93,6 @@ class _ScreenUtilInitState extends State<ScreenUtilInit>
9393
@override
9494
void initState() {
9595
super.initState();
96-
// mediaQueryData = newData;
9796
binding.addObserver(this);
9897
}
9998

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_screenutil
22
description: A flutter plugin for adapting screen and font size.Guaranteed to look good on different models
3-
version: 6.0.0
3+
version: 6.0.1
44
homepage: https://github.com/OpenFlutter/flutter_screenutil
55

66
environment:

0 commit comments

Comments
 (0)