I get the error
'package:flutter/src/widgets/framework.dart': Failed assertion: line 5356 pos 14: '() {
// check that it really is our d
when I tab on a textview inside my app.
This is how i initialize the app itself.
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ScreenUtilInit(
designSize: Size(460,790),
builder: (context) => MultiProvider(
providers: [
ChangeNotifierProvider(create: (context) => TestApp()),
ChangeNotifierProvider(create: (context) => PageControllerProvider()),
ChangeNotifierProvider(create: (context) => RequestProvider()),
ChangeNotifierProvider(create: (context) => HistoryProvider()),
ChangeNotifierProvider(create: (context) => ThemeProvider()),
],
child: App()
),
);
}
}
CodePudding user response:
try updating flutter_screenutil to version 5.5.2 or higher
CodePudding user response:
If you are using the current version of Flutter (v2.10.2>=),
ScreenUtil package creates a conflict with that version.
If you downgrade your Flutter version back to v.2.10.2, the error will be fixed.
You can access it from this link.