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:
2727 Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854
2828 image_picker_ios: 4a8aadfbb6dc30ad5141a2ce3832af9214a705b5
2929 mono_kit: 67c15c1486e232d7f44ac47286933e80aa02f7a3
30- url_launcher_ios: 08a3dfac5fb39e8759aeb0abbd5d9480f30fc8b4
30+ url_launcher_ios: 68d46cc9766d0c41dbdc884310529557e3cd7a86
3131
3232PODFILE CHECKSUM: ef19549a9bc3046e7bb7d2fab4d021637c0c58a3
3333
Original file line number Diff line number Diff line change 1- import 'dart:math' ;
2-
31import 'package:adaptive_dialog/src/action_callback.dart' ;
42import 'package:adaptive_dialog/src/extensions/extensions.dart' ;
53import 'package:flutter/cupertino.dart' ;
@@ -29,19 +27,13 @@ class CupertinoModalActionSheet<T> extends StatelessWidget {
2927
3028 @override
3129 Widget build (BuildContext context) {
32- final mediaQuery = MediaQuery .of (context);
3330 final title = this .title;
3431 final message = this .message;
3532 return PopScope (
3633 canPop: canPop,
3734 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 ,
4537 child: CupertinoActionSheet (
4638 title: title == null ? null : Text (title),
4739 message: message == null ? null : Text (message),
You can’t perform that action at this time.
0 commit comments