diff --git a/CHANGELOG.md b/CHANGELOG.md index 166215c..e8c0123 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 6.0.1 +- change useInheritedMediaQuery default value to true +- update readme + # 6.0.0 - remove ScreenutilInit layout listener diff --git a/lib/src/screenutil_init.dart b/lib/src/screenutil_init.dart index 77e677e..47e8652 100644 --- a/lib/src/screenutil_init.dart +++ b/lib/src/screenutil_init.dart @@ -39,7 +39,7 @@ class ScreenUtilInit extends StatefulWidget { this.designSize = ScreenUtil.defaultSize, this.splitScreenMode = false, this.minTextAdapt = false, - this.useInheritedMediaQuery = false, + this.useInheritedMediaQuery = true, this.scaleByHeight = false}) : super(key: key); @@ -93,7 +93,6 @@ class _ScreenUtilInitState extends State @override void initState() { super.initState(); - // mediaQueryData = newData; binding.addObserver(this); } diff --git a/pubspec.yaml b/pubspec.yaml index 172fd48..9a0dee5 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_screenutil description: A flutter plugin for adapting screen and font size.Guaranteed to look good on different models -version: 6.0.0 +version: 6.0.1 homepage: https://github.com/OpenFlutter/flutter_screenutil environment: