We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 632a9ae commit 4fb585cCopy full SHA for 4fb585c
lib/screenutil_init.dart
@@ -3,6 +3,7 @@ import 'package:flutter/widgets.dart';
3
import 'screenutil.dart';
4
5
class ScreenUtilInit extends StatelessWidget {
6
+ /// A helper widget that initializes [ScreenUtil]
7
const ScreenUtilInit({
8
@required this.child,
9
this.designSize = ScreenUtil.defaultSize,
@@ -11,7 +12,11 @@ class ScreenUtilInit extends StatelessWidget {
11
12
}) : super(key: key);
13
14
final Widget child;
15
+
16
+ /// The [Size] of the device in the design draft, in px
17
final Size designSize;
18
19
+ /// Sets whether the font size is scaled according to the system's "font size" assist option
20
final bool allowFontScaling;
21
22
@override
0 commit comments