flutter/dev/integration_tests/flutter_gallery/lib/demo/material
Devin 5047690b53
ExpansionPanel isExpanded callback parameter (Ticket 74114) (#128082)
Fixes https://github.com/flutter/flutter/issues/74114

This PR addresses the issue detailed here: https://github.com/flutter/flutter/issues/74114 . The boolean isExpanded returned by the expansion panel callback now reflects the state of the panel that the user is seeing. If it's expanded on screen then the callback returns true. When you close the panel the callback returns false. When another panel is open and you open a different one, the callback executes twice. It returns isExpanded == false for the panel you are closing and true for the panel that is being opened.
I had to change the code in a couple existing tests because some tests are using the old behavior of the callback. This PR addresses feedback listed in closed PR -> https://github.com/flutter/flutter/pull/127876 . The reasone the original PR is closed is that I was having some struggles with git. A couple of the commits in this PR are just reverts of commits I meant not to happen.
Pre-launch Checklist

    [ X] I read the [Contributor Guide](https://github.com/flutter/flutter/wiki/Tree-hygiene#overview) and followed the process outlined there for submitting PRs.
    [ X] I read the [Tree Hygiene](https://github.com/flutter/flutter/wiki/Tree-hygiene) wiki page, which explains my responsibilities.
    [ X] I read and followed the [Flutter Style Guide](https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo), including [Features we expect every widget to implement](https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#features-we-expect-every-widget-to-implement).
    [ X] I signed the [CLA](https://cla.developers.google.com/).
    [ X] I listed at least one issue that this PR fixes in the description above.
    I updated/added relevant documentation (doc comments with ///).
    [ X] I added new tests to check the change I am making, or this PR is [test-exempt](https://github.com/flutter/flutter/wiki/Tree-hygiene#tests).
    [ X] All existing and new tests are passing.
2023-06-09 17:47:59 +00:00
..
backdrop_demo.dart Enable use_colored_box lint (#117370) 2022-12-20 14:09:55 -08:00
banner_demo.dart Remove 1745 decorative breaks (#123259) 2023-03-22 21:12:22 +00:00
bottom_app_bar_demo.dart Make Flex,Row,Column const for real (#119673) 2023-02-02 19:33:57 +00:00
bottom_navigation_demo.dart Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00
buttons_demo.dart Prepare flutter_gallery for use_super_parameters (#100515) 2022-03-28 16:04:22 -07:00
cards_demo.dart Remove 1745 decorative breaks (#123259) 2023-03-22 21:12:22 +00:00
chip_demo.dart Deprecate ThemeData errorColor and backgroundColor (#110162) 2022-09-02 04:02:55 +00:00
data_table_demo.dart Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00
date_and_time_picker_demo.dart Deprecate 2018 text theme parameters (#109817) 2022-08-22 20:00:34 +00:00
dialog_demo.dart Deprecate 2018 text theme parameters (#109817) 2022-08-22 20:00:34 +00:00
drawer_demo.dart Deprecate 2018 text theme parameters (#109817) 2022-08-22 20:00:34 +00:00
elevation_demo.dart Updating PrimaryScrollController for Desktop (#102099) 2022-06-09 16:49:45 -05:00
expansion_panels_demo.dart ExpansionPanel isExpanded callback parameter (Ticket 74114) (#128082) 2023-06-09 17:47:59 +00:00
expansion_tile_list_demo.dart Updating PrimaryScrollController for Desktop (#102099) 2022-06-09 16:49:45 -05:00
full_screen_dialog_demo.dart Deprecate 2018 text theme parameters (#109817) 2022-08-22 20:00:34 +00:00
grid_list_demo.dart Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00
icons_demo.dart Deprecate 2018 text theme parameters (#109817) 2022-08-22 20:00:34 +00:00
leave_behind_demo.dart Add spaces after flow control statements (#126320) 2023-05-15 11:07:30 +02:00
list_demo.dart Remove 1745 decorative breaks (#123259) 2023-03-22 21:12:22 +00:00
material.dart Move flutter_gallery to the testing folder (#52532) 2020-03-16 10:31:42 +01:00
menu_demo.dart Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00
modal_bottom_sheet_demo.dart Prepare flutter_gallery for use_super_parameters (#100515) 2022-03-28 16:04:22 -07:00
overscroll_demo.dart Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00
page_selector_demo.dart Add maybeOf for all the cases where of returns nullable. (#114120) 2022-10-31 23:09:09 +00:00
persistent_bottom_sheet_demo.dart Prepare flutter_gallery for use_super_parameters (#100515) 2022-03-28 16:04:22 -07:00
progress_indicator_demo.dart Remove 1745 decorative breaks (#123259) 2023-03-22 21:12:22 +00:00
reorderable_list_demo.dart Remove 1745 decorative breaks (#123259) 2023-03-22 21:12:22 +00:00
scrollable_tabs_demo.dart Add spaces after flow control statements (#126320) 2023-05-15 11:07:30 +02:00
search_demo.dart Make Flex,Row,Column const for real (#119673) 2023-02-02 19:33:57 +00:00
selection_controls_demo.dart Make Flex,Row,Column const for real (#119673) 2023-02-02 19:33:57 +00:00
slider_demo.dart Remove 1745 decorative breaks (#123259) 2023-03-22 21:12:22 +00:00
snack_bar_demo.dart Prepare flutter_gallery for use_super_parameters (#100515) 2022-03-28 16:04:22 -07:00
tabs_demo.dart Deprecate 2018 text theme parameters (#109817) 2022-08-22 20:00:34 +00:00
tabs_fab_demo.dart Deprecate 2018 text theme parameters (#109817) 2022-08-22 20:00:34 +00:00
text_form_field_demo.dart Deprecate 2018 text theme parameters (#109817) 2022-08-22 20:00:34 +00:00
tooltip_demo.dart Deprecate 2018 text theme parameters (#109817) 2022-08-22 20:00:34 +00:00