Home > database >  The argument type 'MaterialApp Function()' can't be assigned to the parameter type &#
The argument type 'MaterialApp Function()' can't be assigned to the parameter type &#

Time:04-18

I am using this image shows the error

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) {
  • Related