Skip to content

Commit

Permalink
5.0.0 readme
Browse files Browse the repository at this point in the history
  • Loading branch information
李卓原 committed Apr 9, 2021
1 parent 7032217 commit 552fefe
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 3 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ Column(

#### Setting font does not change with system font size

APP global:
```
MaterialApp(
debugShowCheckedModeBanner: false,
Expand All @@ -230,6 +231,11 @@ Column(
),
```

Separate Text:
```dart
Text("text", textScaleFactor: 1.0)
```

[widget test](https://github.com/OpenFlutter/flutter_screenutil/issues/115)

### Example:
Expand Down
8 changes: 6 additions & 2 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ Column(

#### 设置字体不随系统字体大小进行改变

```
APP全局:
```dart
MaterialApp(
debugShowCheckedModeBanner: false,
title: 'Flutter_ScreenUtil',
Expand All @@ -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)

Expand Down
28 changes: 28 additions & 0 deletions README_PT.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,34 @@ class _HomePageState extends State<HomePage> {
}
```

#### 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:
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 552fefe

Please sign in to comment.