Open hlemcke opened 3 years ago
To properly integrate with MaterialApp Localizations, redraw must take place outside I18n. As a non-breaking change I suggest to add a bool property autoRedraw with default value true to I18n.
MaterialApp Localizations
I18n
bool
autoRedraw
true
bool autoRedraw; I18n({ this.autoRedraw = true, ...})
This enhancement allows exception free integration with MaterialApp. Together with #56 makes enhancement #55 obselete.
MaterialApp
Sorry, I don't understand what you mean. The autoRedraw parameter is there to do what exactly? Could you please explain in more detail or PR?
To properly integrate with
MaterialApp Localizations
, redraw must take place outsideI18n
. As a non-breaking change I suggest to add abool
propertyautoRedraw
with default valuetrue
toI18n
.This enhancement allows exception free integration with
MaterialApp
. Together with #56 makes enhancement #55 obselete.