Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
flutter_screenutil
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
李卓原
2021-01-06 16:06:53 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6e8818a07de04dc2cde070ca5983a9c3e1d10e6c
6e8818a0
1 parent
6ae0fcf0
merge 4.0.2+3
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
9 additions
and
4 deletions
CHANGELOG.md
README.md
README_CN.md
README_PT.md
lib/screenutil_init.dart
pubspec.yaml
CHANGELOG.md
View file @
6e8818a
# 5.0.0-nullsafety.3
-
merge 4.0.2+3
# 5.0.0-nullsafety.2
-
merge 4.0.2+2 #186
...
...
README.md
View file @
6e8818a
...
...
@@ -23,7 +23,7 @@ dependencies:
flutter
:
sdk
:
flutter
# add flutter_screenutil
flutter_screenutil
:
^
5.0.0-nullsafety.1
flutter_screenutil
:
^
{latest version}
```
### Add the following imports to your Dart code:
```
dart
...
...
README_CN.md
View file @
6e8818a
...
...
@@ -28,7 +28,7 @@ dependencies:
flutter
:
sdk
:
flutter
# 添加依赖
flutter_screenutil
:
^
5.0.0-nullsafety.1
flutter_screenutil
:
^
{latest version}
```
### 在每个使用的地方导入包:
```
dart
...
...
README_PT.md
View file @
6e8818a
...
...
@@ -24,7 +24,7 @@ dependencies:
flutter
:
sdk
:
flutter
# add flutter_screenutil
flutter_screenutil
:
^
5.0.0-nullsafety.1
flutter_screenutil
:
^
{latest version}
```
### Adicione o seguinte import em seu código Dart:
...
...
lib/screenutil_init.dart
View file @
6e8818a
...
...
@@ -22,7 +22,9 @@ class ScreenUtilInit extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
LayoutBuilder
(
// ignore: missing_return
builder:
(
_
,
BoxConstraints
constraints
)
{
if
(
constraints
.
maxWidth
!=
0
)
{
ScreenUtil
.
init
(
constraints
,
designSize:
designSize
,
...
...
pubspec.yaml
View file @
6e8818a
name
:
flutter_screenutil
description
:
A flutter plugin for adapting screen and font size.Guaranteed to look good on different models
version
:
5.0.0-nullsafety.
2
version
:
5.0.0-nullsafety.
3
homepage
:
https://github.com/OpenFlutter/flutter_screenutil
environment
:
...
...
Please
register
or
login
to post a comment