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
sarbagyastha
2020-07-25 14:02:18 +0545
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
9dec013c9cad289f11590d504b45d95fc1306df6
9dec013c
1 parent
65367c4e
asserts that ScreenUtil is called only after it was initialized
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
lib/screenutil.dart
lib/screenutil.dart
View file @
9dec013
...
...
@@ -39,7 +39,13 @@ class ScreenUtil {
_textScaleFactor
=
window
.
textScaleFactor
;
}
factory
ScreenUtil
()
=>
_instance
;
factory
ScreenUtil
()
{
assert
(
_instance
!=
null
,
'
\n
Ensure to initialize ScreenUtil before accessing it.'
,
);
return
_instance
;
}
static
void
init
({
Size
designSize
=
defaultSize
,
...
...
Please
register
or
login
to post a comment