flutter/examples/api/lib/cupertino
Tong Mu 98fb56fc05
Remove reference to MaterialApp and showCupertinoModalPopup from CupertinoAlertDialog (#150725)
This PR removes the usage of Material widgets from unit tests of `CupertinoAlertDialog`. Other than it being just wrong, it also introduces bad behavior, such as the scroll view can't be overscrolled so that the overscroll behavior can't be tested.
* Since there are no longer M2 or M3 variants of tests, I straight up rewrote the unit tests for "default look" with similar tests as those of `CupertinoActionSheet` ([here](https://github.com/flutter/flutter/blob/master/packages/flutter/test/cupertino/action_sheet_test.dart#L21))

This PR also replaces `showCupertinoModalPopup` with `showCupertinoDialog` in `CupertinoAlertDialog`'s example code. The former should only be used by `CupertinoActionSheet`, which has a different animation from the correct `showCupertinoDialog`.
2024-06-25 22:45:05 +00:00
..
activity_indicator Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
bottom_tab_bar Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
button Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
context_menu Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
date_picker Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
dialog Remove reference to MaterialApp and showCupertinoModalPopup from CupertinoAlertDialog (#150725) 2024-06-25 22:45:05 +00:00
form_row Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
list_section Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
nav_bar Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
page_scaffold Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
picker Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
radio Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
refresh Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
route Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
scrollbar Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
search_field Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
segmented_control Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
slider Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
switch Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
tab_scaffold Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
text_field Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00
text_form_field_row Rename Sample classes (#124080) 2023-04-04 20:34:29 +00:00