Skip to content

Commit 4fb585c

Browse files
committed
widget description
1 parent 632a9ae commit 4fb585c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/screenutil_init.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import 'package:flutter/widgets.dart';
33
import 'screenutil.dart';
44

55
class ScreenUtilInit extends StatelessWidget {
6+
/// A helper widget that initializes [ScreenUtil]
67
const ScreenUtilInit({
78
@required this.child,
89
this.designSize = ScreenUtil.defaultSize,
@@ -11,7 +12,11 @@ class ScreenUtilInit extends StatelessWidget {
1112
}) : super(key: key);
1213

1314
final Widget child;
15+
16+
/// The [Size] of the device in the design draft, in px
1417
final Size designSize;
18+
19+
/// Sets whether the font size is scaled according to the system's "font size" assist option
1520
final bool allowFontScaling;
1621

1722
@override

0 commit comments

Comments
 (0)