Skip to content

Commit 44a1f67

Browse files
authored
[cupertino_ui]Add awaitNotRequired to Future-returning callsites without await (flutter#12817)
cupertino_ui split of [Add awaitNotRequired annotation to Material/Cupertino libraries](flutter#185446) Part of [Use @awaitNotRequired in Flutter SDK](flutter#168555)
1 parent 556c44c commit 44a1f67

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

‎packages/cupertino_ui/lib/src/route.dart‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1344,6 +1344,7 @@ class CupertinoModalPopupRoute<T> extends PopupRoute<T> {
13441344
/// * [CupertinoActionSheet], which is the widget usually returned by the
13451345
/// `builder` argument to [showCupertinoModalPopup].
13461346
/// * <https://developer.apple.com/design/human-interface-guidelines/ios/views/action-sheets/>
1347+
@awaitNotRequired
13471348
Future<T?> showCupertinoModalPopup<T>({
13481349
required BuildContext context,
13491350
required WidgetBuilder builder,
@@ -1447,6 +1448,7 @@ Widget _buildCupertinoDialogTransitions(
14471448
/// * [DisplayFeatureSubScreen], which documents the specifics of how
14481449
/// [DisplayFeature]s can split the screen into sub-screens.
14491450
/// * <https://developer.apple.com/design/human-interface-guidelines/alerts/>
1451+
@awaitNotRequired
14501452
Future<T?> showCupertinoDialog<T>({
14511453
required BuildContext context,
14521454
required WidgetBuilder builder,
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
changelog: |
2+
- Adds awaitNotRequired annotation to showCupertinoModalPopup and showCupertinoDialog.
3+
version: patch

0 commit comments

Comments
 (0)