Closed sed1ka closed 5 months ago
After do some research I found to fix the problem:
@override
Widget build(BuildContext context) {
final TransitionBuilder fToastBuilder = FToastBuilder();
return MaterialApp(
builder (BuildContext context, Widget? child){
child = fToastBuilder(context, child); // This solve the case problem
// do something
// do something
return child!;
},
home: MyApp(),
navigatorKey: navigatorKey,
);
}
Based on doc, I need to setup FToastBuilder on
builder
parameters ofMaterialApp
. But the problem is I adding some code in the builder section, for example I prevent the text scale changes by the os system. I put the comment section in the codeso with my condition, currently I can't put the FToastBuilder on builder of MaterialApp