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
李卓原
2022-04-06 21:07:47 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
305b764401a17be6745ec1aad6498b74069eee05
305b7644
1 parent
2491df28
ui fix
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
11 deletions
example/lib/src/first_method.dart
example/lib/src/home.dart
example/lib/src/first_method.dart
View file @
305b764
...
...
@@ -18,7 +18,7 @@ class MyApp extends StatelessWidget {
// You can use the library anywhere in the app even in theme
theme:
ThemeData
(
primarySwatch:
Colors
.
blue
,
textTheme:
TextTheme
(
bodyText2:
TextStyle
(
fontSize:
30
.
sp
)),
textTheme:
TextTheme
(
bodyText2:
TextStyle
(
fontSize:
16
.
sp
)),
),
home:
HomePage
(
title:
'First Method'
),
);
...
...
example/lib/src/home.dart
View file @
305b764
...
...
@@ -84,18 +84,12 @@ class HomePageScaffold extends StatelessWidget {
Text
(
'Bottom safe zone distance:
${ScreenUtil().bottomBarHeight}
dp'
),
Text
(
'Status bar height:
${ScreenUtil().statusBarHeight}
dp'
),
Text
(
'The ratio of actual width to UI design:
${ScreenUtil().scaleWidth}
'
,
textAlign:
TextAlign
.
center
,
),
'The ratio of actual width to UI design:
${ScreenUtil().scaleWidth}
'
),
Text
(
'The ratio of actual height to UI design:
${ScreenUtil().scaleHeight}
'
,
textAlign:
TextAlign
.
center
,
),
SizedBox
(
height:
10
.
h
,
),
'The ratio of actual height to UI design:
${ScreenUtil().scaleHeight}
'
),
10
.
verticalSpace
,
Text
(
'System font scaling factor:
${ScreenUtil().textScaleFactor}
'
),
SizedBox
(
height:
5
)
,
5
.
verticalSpace
,
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
children:
<
Widget
>[
...
...
Please
register
or
login
to post a comment