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-24 18:34:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
19bdf7d3d25efa076a21aa79efa0d35f90e43560
19bdf7d3
1 parent
e7e353a3
代码优化
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
lib/src/screen_util.dart
lib/src/screen_util.dart
View file @
19bdf7d
...
...
@@ -77,7 +77,6 @@ class ScreenUtil {
static
void
init
(
BuildContext
?
context
,
{
Orientation
?
orientation
,
Size
?
deviceSize
,
Size
designSize
=
defaultSize
,
bool
splitScreenMode
=
false
,
bool
minTextAdapt
=
false
,
...
...
@@ -86,7 +85,7 @@ class ScreenUtil {
?
MediaQuery
.
maybeOf
(
context
).
nonEmptySizeOrNull
()
:
null
;
deviceSize
??
=
deviceData
?.
size
??
designSize
;
Size
deviceSize
=
deviceData
?.
size
??
designSize
;
orientation
??=
deviceData
?.
orientation
??
(
deviceSize
.
width
>
deviceSize
.
height
?
Orientation
.
landscape
...
...
Please
register
or
login
to post a comment