add keeping android font scale factor
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
b004f4b9ee
commit
e0579a9b57
1 changed files with 7 additions and 2 deletions
|
|
@ -211,8 +211,13 @@ class App extends StatelessWidget {
|
|||
// FirebaseAnalyticsObserver(analytics: analytics),
|
||||
],
|
||||
builder: isAndroid
|
||||
? (_, child) => AccessibilityListener(
|
||||
child: child,
|
||||
? (context, child) => AccessibilityListener(
|
||||
child: MediaQuery(
|
||||
data: MediaQuery.of(context).copyWith(
|
||||
textScaleFactor: 1.0,
|
||||
),
|
||||
child: child ?? Container(),
|
||||
),
|
||||
)
|
||||
: _keepScaleBuilder(),
|
||||
),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue