type 'Widget Function(BuildContext, Widget)' can't be assigned to the parameter type 'Widget Function(BuildContext, Widget?)?' from `builder: FlutterI18n.rootAppBuider()` #173
The argument type 'Widget Function(BuildContext, Widget)' can't be assigned to the parameter type 'Widget Function(BuildContext, Widget?)?'.
I noticed that in issue #167 and related RP #168 , which are related to builder: FlutterI18n.rootAppBuider(),. I'm using the latest release 0.22.4 which contains them.
I tried to solve the problem by changing like below:
English is not my native language; please excuse my typing errors.
Hi! Thanks for your package. I use it in my project, it's quite convenient.
Recently I am migirating my project to Null Safety, I'm using:
and
in my project's
pubspec.yaml
.While migirating, I found a problem. When I use:
It comes diagnostic below:
I noticed that in issue #167 and related RP #168 , which are related to
builder: FlutterI18n.rootAppBuider(),
. I'm using the latest release 0.22.4 which contains them.I tried to solve the problem by changing like below:
I opened a PR #174 . Would you please help me check if this modification is proper? Thank you.