mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![]() 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`. |
||
---|---|---|
.. | ||
activity_indicator | ||
bottom_tab_bar | ||
button | ||
context_menu | ||
date_picker | ||
dialog | ||
form_row | ||
list_section | ||
nav_bar | ||
page_scaffold | ||
picker | ||
radio | ||
refresh | ||
route | ||
scrollbar | ||
search_field | ||
segmented_control | ||
slider | ||
switch | ||
tab_scaffold | ||
text_field | ||
text_form_field_row |