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
李卓原
2023-05-12 14:15:58 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
481964dea97379c0d67cdbb92c0cf6ac6945f7ed
481964de
1 parent
ddf554ed
迁移3.10
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
CHANGELOG.md
example/android/build.gradle
example/lib/src/home.dart
pubspec.yaml
CHANGELOG.md
View file @
481964d
# 5.8.0
-
mirage flutter 3.10
# 5.7.0
-
merge #464
...
...
example/android/build.gradle
View file @
481964d
...
...
@@ -26,6 +26,6 @@ subprojects {
project
.
evaluationDependsOn
(
':app'
)
}
task
clean
(
type:
Delete
)
{
task
s
.
register
(
"clean"
,
Delete
)
{
delete
rootProject
.
buildDir
}
...
...
example/lib/src/home.dart
View file @
481964d
...
...
@@ -5,7 +5,7 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
class
HomePageScaffold
extends
StatelessWidget
{
const
HomePageScaffold
({
Key
?
key
,
this
.
title
=
''
})
:
super
(
key:
key
);
void
printScreenInformation
()
{
void
printScreenInformation
(
BuildContext
context
)
{
print
(
'Device Size:
${Size(1.sw, 1.sh)}
'
);
print
(
'Device pixel density:
${ScreenUtil().pixelRatio}
'
);
print
(
'Bottom safe zone distance dp:
${ScreenUtil().bottomBarHeight}
dp'
);
...
...
@@ -21,7 +21,7 @@ class HomePageScaffold extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
printScreenInformation
();
printScreenInformation
(
context
);
/// Uncomment if you wanna force current widget to be rebuilt with updated values
/// Must use it if you use the second method, or if you use ScreenUtilInit's child.
...
...
pubspec.yaml
View file @
481964d
name
:
flutter_screenutil
description
:
A flutter plugin for adapting screen and font size.Guaranteed to look good on different models
version
:
5.
7
.0
version
:
5.
8
.0
homepage
:
https://github.com/OpenFlutter/flutter_screenutil
environment
:
...
...
Please
register
or
login
to post a comment