From 552fefef27a9ad00ee6b0de255ffb79895253e7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E5=8D=93=E5=8E=9F?= Date: Fri, 9 Apr 2021 11:22:19 +0800 Subject: [PATCH] 5.0.0 readme --- README.md | 6 ++++++ README_CN.md | 8 ++++++-- README_PT.md | 28 ++++++++++++++++++++++++++++ pubspec.yaml | 2 +- 4 files changed, 41 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 32f4e25..193b24f 100644 --- a/README.md +++ b/README.md @@ -212,6 +212,7 @@ Column( #### Setting font does not change with system font size +APP global: ``` MaterialApp( debugShowCheckedModeBanner: false, @@ -230,6 +231,11 @@ Column( ), ``` +Separate Text: +```dart +Text("text", textScaleFactor: 1.0) +``` + [widget test](https://github.com/OpenFlutter/flutter_screenutil/issues/115) ### Example: diff --git a/README_CN.md b/README_CN.md index f4b1113..83529f1 100644 --- a/README_CN.md +++ b/README_CN.md @@ -214,7 +214,8 @@ Column( #### 设置字体不随系统字体大小进行改变 -``` +APP全局: +```dart MaterialApp( debugShowCheckedModeBanner: false, title: 'Flutter_ScreenUtil', @@ -231,7 +232,10 @@ Column( home: HomePage(title: 'FlutterScreenUtil Demo'), ), ``` - +单独的Text: +```dart +Text("text", textScaleFactor: 1.0) +``` [widget test](https://github.com/OpenFlutter/flutter_screenutil/issues/115) diff --git a/README_PT.md b/README_PT.md index 4cf66ef..b2a0cde 100644 --- a/README_PT.md +++ b/README_PT.md @@ -368,6 +368,34 @@ class _HomePageState extends State { } ``` + +#### Setting font does not change with system font size + +APP global: +``` + MaterialApp( + debugShowCheckedModeBanner: false, + title: 'Flutter_ScreenUtil', + theme: ThemeData( + primarySwatch: Colors.blue, + ), + builder: (context, widget) { + return MediaQuery( + ///Setting font does not change with system font size + data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0), + child: widget, + ); + }, + home: HomePage(title: 'FlutterScreenUtil Demo'), + ), +``` + +Separate Text: +```dart +Text("text", textScaleFactor: 1.0) +``` + + [widget test](https://github.com/OpenFlutter/flutter_screenutil/issues/115) ### Exemplo: diff --git a/pubspec.yaml b/pubspec.yaml index cf71ef0..7d2870e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -4,7 +4,7 @@ version: 5.0.0 homepage: https://github.com/OpenFlutter/flutter_screenutil environment: - sdk: '>=2.12.0-29.10.beta <3.0.0' + sdk: ">=2.12.0 <3.0.0" dependencies: flutter: