-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LateInitializationError: Field '_minTextAdapt@941084504' has not been initialized. #545
Comments
I am having same issue did you find any solution |
This issue is stale because it has been open for 30 days with no activity. |
I have same issue now this time while I am using this package for mobile dev responsive ui and I wondered why so far no one solved. waiting to be solve but dont know how long wiill that take |
Same issue |
you guys have to wrap your MaterialApp with ScreenUtilInit, follow the docs:
|
I got solution. Here is my code, |
This issue is stale because it has been open for 30 days with no activity. |
i got the same error |
The MaterialApp should be returned From the ScreenUtilInit builder not as a child -- |
have same issue |
You must use ScreenUtilInit widget on top of your widget. If they are on the same level, use builder. Example when use child: WidgetA(
child: ScreenUtilInit(
child: WidgetB(),
),
)
class WidgetB extends State..Widget {
@override
build(context) {
return Text('', fontSize: 18.sp),
}
} Example when use builder: WidgetA(
child: ScreenUtilInit(
builder: (_, __) {
return Text('', fontSize: 18.sp);
},
),
) Example when use both: WidgetA(
child: ScreenUtilInit(
builder: (_, child) {
return Container(
width: .2.sw,
child: child,
);
},
// Use child so WidgetB not get built every time .2.sw change
child: WidgetB(),
),
) |
i have this error suddenly when i run new application
The text was updated successfully, but these errors were encountered: