screenConfig static method

Widget screenConfig({
  1. double? width,
  2. double? height,
  3. required MaterialApp builder,
})

Implementation

static Widget screenConfig(
    {double? width, double? height, required MaterialApp builder}) {
  return ScreenUtilInit(
    designSize: getSizeDevice(width, height),
    minTextAdapt: true,
    splitScreenMode: true,
    builder: (context, child) => builder,
  );
}