feat(app): FLUTTERSTARTER-1 Заблокировать изменение шрифта (#23)

* fix(app): добавить глобальный MediaQuery для предсказуемости изменения шрифта
This commit is contained in:
Artem Luzin
2025-08-08 14:57:17 +07:00
committed by GitHub
parent 35bceccbf7
commit d8110c23b3

View File

@@ -94,7 +94,14 @@ class _AppState extends State<App> {
return DependsProviders( return DependsProviders(
diContainer: diContainer, diContainer: diContainer,
child: ThemeConsumer( child: ThemeConsumer(
builder: () => _App(router: widget.router), builder: () => MediaQuery(
key: ValueKey('prevent_rebuild'),
data: MediaQuery.of(context).copyWith(
textScaler: TextScaler.noScaling,
boldText: false,
),
child: _App(router: widget.router),
),
), ),
); );
} }