Alexey Zdorovykh

widget description

... ... @@ -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
... ...