CodePudding user response:
ScreenUtilInit: builder
provides BuildContext
on callback,
On line 162 do builder: (_) => MaterialApp
or
return ScreenUtilInit(
designSize: Size(1080, 2160),
builder: (BuildContext c) => MaterialApp(
CodePudding user response:
In your code simply change
builder: (context, value1, value2, child){
with
create: (context, value1, value2, child) {