We again ran into the problem that after calling method setNewLanguage(context, newLanguage: newLang, restart: true) part of the UI is updated with new translates, but part is not, including the previous screen in the back stack. If I open a new screen, then it is displayed with a new translation. We managed to fix the problem some time ago, but now it has reappeared.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.5, on macOS 11.6 20G165 darwin-x64, locale
en-GB)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✓] Xcode - develop for iOS and macOS
[✓] Chrome - develop for the web
[!] Android Studio (version 2020.3)
✗ Unable to find bundled Java version.
[✓] Connected device (2 available)
We again ran into the problem that after calling method
setNewLanguage(context, newLanguage: newLang, restart: true)
part of the UI is updated with new translates, but part is not, including the previous screen in the back stack. If I open a new screen, then it is displayed with a new translation. We managed to fix the problem some time ago, but now it has reappeared.A rough sketch of the creation of LocalizedApp: