[PR #18998] fix(mobile): fix nested MaterialApp #15912

Closed
opened 2026-02-05 15:56:33 +03:00 by OVERLORD · 0 comments
Owner

Original Pull Request: https://github.com/immich-app/immich/pull/18998

State: closed
Merged: Yes


Description

This pull request fixes the issue where context cannot be used with easy_localization in build() due to the presence of two layers of MaterialApp: an outer MaterialApp that provides the EasyLocalization context and an inner MaterialApp.router. The widget inside the inner MaterialApp.router runs within its own context and, as a result, does not have access to the EasyLocalization context provided by the outer MaterialApp.

**Original Pull Request:** https://github.com/immich-app/immich/pull/18998 **State:** closed **Merged:** Yes --- ## Description This pull request fixes the issue where context cannot be used with easy_localization in `build()` due to the presence of two layers of `MaterialApp`: an outer `MaterialApp` that provides the EasyLocalization context and an inner `MaterialApp.router`. The widget inside the inner `MaterialApp.router` runs within its own context and, as a result, does not have access to the EasyLocalization context provided by the outer `MaterialApp`.
OVERLORD added the pull-request label 2026-02-05 15:56:33 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#15912