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
Alexey Zdorovykh
2020-12-16 14:11:34 +0500
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4fb585c21537808740dd915b1f054b51dc225d9b
4fb585c2
1 parent
632a9ae7
widget description
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
lib/screenutil_init.dart
lib/screenutil_init.dart
View file @
4fb585c
...
...
@@ -3,6 +3,7 @@ import 'package:flutter/widgets.dart';
import
'screenutil.dart'
;
class
ScreenUtilInit
extends
StatelessWidget
{
/// A helper widget that initializes [ScreenUtil]
const
ScreenUtilInit
({
@required
this
.
child
,
this
.
designSize
=
ScreenUtil
.
defaultSize
,
...
...
@@ -11,7 +12,11 @@ class ScreenUtilInit extends StatelessWidget {
})
:
super
(
key:
key
);
final
Widget
child
;
/// The [Size] of the device in the design draft, in px
final
Size
designSize
;
/// Sets whether the font size is scaled according to the system's "font size" assist option
final
bool
allowFontScaling
;
@override
...
...
Please
register
or
login
to post a comment