File tree Expand file tree Collapse file tree 2 files changed +3
-11
lines changed
lib/src/modal_action_sheet Expand file tree Collapse file tree 2 files changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ SPEC CHECKSUMS:
27
27
Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
28
28
image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
29
29
mono_kit: 67c15c1486e232d7f44ac47286933e80aa02f7a3
30
- url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
30
+ url_launcher_ios: 68d46cc9766d0c41dbdc884310529557e3cd7a86
31
31
32
32
PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
33
33
Original file line number Diff line number Diff line change 1
- import 'dart:math' ;
2
-
3
1
import 'package:adaptive_dialog/src/action_callback.dart' ;
4
2
import 'package:adaptive_dialog/src/extensions/extensions.dart' ;
5
3
import 'package:flutter/cupertino.dart' ;
@@ -29,19 +27,13 @@ class CupertinoModalActionSheet<T> extends StatelessWidget {
29
27
30
28
@override
31
29
Widget build (BuildContext context) {
32
- final mediaQuery = MediaQuery .of (context);
33
30
final title = this .title;
34
31
final message = this .message;
35
32
return PopScope (
36
33
canPop: canPop,
37
34
onPopInvoked: onPopInvoked,
38
- child: MediaQuery (
39
- data: mediaQuery.copyWith (
40
- // `CupertinoAlertDialog` overrides textScaleFactor
41
- // to keep larger than 1, but `CupertinoActionSheet` doesn't.
42
- // https://twitter.com/_mono/status/1266997626693509126
43
- textScaler: TextScaler .linear (max (1 , mediaQuery.textScaleFactor)),
44
- ),
35
+ child: MediaQuery .withClampedTextScaling (
36
+ minScaleFactor: 1 ,
45
37
child: CupertinoActionSheet (
46
38
title: title == null ? null : Text (title),
47
39
message: message == null ? null : Text (message),
You can’t perform that action at this time.
0 commit comments