screenUtilInit function
void
screenUtilInit(
- BuildContext context, {
- Size designSize = const Size(375, 750),
- bool splitScreenMode = false,
- bool minTextAdapt = false,
- bool scaleByHeight = false,
屏幕适配 ScreenUtil 初始化
Implementation
/// ScreenUtil 初始化
void screenUtilInit(
BuildContext context, {
Size designSize = const Size(375, 750),
bool splitScreenMode = false,
bool minTextAdapt = false,
bool scaleByHeight = false,
}) =>
ScreenUtil.init(
context,
designSize: designSize,
splitScreenMode: splitScreenMode,
);