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-05-08 10:54:59 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7a2477fe302d0e045acb3b54ebe6d29c2838d0ab
7a2477fe
1 parent
66ce36f9
update readme 5.0+2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
example/lib/main.dart
example/lib/main_zh.dart
example/lib/main.dart
View file @
7a2477f
...
...
@@ -14,9 +14,7 @@ class MyApp extends StatelessWidget {
title:
'Flutter_ScreenUtil'
,
theme:
ThemeData
(
primarySwatch:
Colors
.
blue
,
textTheme:
TextTheme
(
button:
TextStyle
(
fontSize:
45
.
sp
)
),
textTheme:
TextTheme
(
button:
TextStyle
(
fontSize:
45
.
sp
)),
),
builder:
(
context
,
widget
)
{
return
MediaQuery
(
...
...
example/lib/main_zh.dart
View file @
7a2477f
...
...
@@ -66,7 +66,9 @@ class _HomePageState extends State<HomePage> {
child:
Text
(
'我的设计稿宽度: 180dp
\n
'
'我的设计稿高度: 200dp'
,
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
ScreenUtil
().
setSp
(
12
))),
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
ScreenUtil
().
setSp
(
12
))),
),
],
),
...
...
Please
register
or
login
to post a comment