aissat / easy_localization

Easy and Fast internationalizing your Flutter Apps
https://pub.dev/packages/easy_localization
MIT License
908 stars 325 forks source link

LocalizationsDelegate make widget rebuild after using route #611

Open KevinTsangSKH opened 1 year ago

KevinTsangSKH commented 1 year ago

Whatever I use which route libarary such as go_router or fluro, I found that after I assign context.localizationDelegates to localizationsDelegates, it will afftect the route and rebuild the current widget, after I replace the packing by using your source code, and I comment as List get delegates => [ //delegate, GlobalMaterialLocalizations.delegate, GlobalWidgetsLocalizations.delegate, GlobalCupertinoLocalizations.delegate, ]; from easy_localization_app.dart, it will not cause the rebuild again, so I think is the delegate affect the route that make the widget always rebuild local_session_timeout-main.zip

jacopofranza commented 5 months ago

same problem here