feat: mobile UI improvement (#4172)

* chore: use 1.0 as default textScaler

* feat: mobile editor ui improvement
This commit is contained in:
Lucas.Xu
2023-12-19 22:31:23 +08:00
committed by GitHub
parent 44e48712a6
commit e7bdce0997
4 changed files with 14 additions and 4 deletions

View File

@ -168,7 +168,14 @@ class _ApplicationWidgetState extends State<ApplicationWidget> {
},
child: BlocBuilder<AppearanceSettingsCubit, AppearanceSettingsState>(
builder: (context, state) => MaterialApp.router(
builder: overlayManagerBuilder(),
builder: (context, child) => MediaQuery(
// use the 1.0 as the textScaleFactor to avoid the text size
// affected by the system setting.
data: MediaQuery.of(context).copyWith(
textScaler: const TextScaler.linear(1),
),
child: overlayManagerBuilder()(context, child),
),
debugShowCheckedModeBanner: false,
theme: state.lightTheme,
darkTheme: state.darkTheme,