screenUtilInit function

void screenUtilInit(
  1. BuildContext context, {
  2. Size designSize = const Size(375, 750),
  3. bool splitScreenMode = false,
  4. bool minTextAdapt = false,
  5. 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,
    );