Skip to content

Conversation

perclasson
Copy link
Contributor

@perclasson perclasson commented Jan 28, 2020

Move up WillPopScope above MaterialApp to make sure that when the expanding bottom sheet (cart) is open, it will close the sheet instead of going back when pressing the back button on Android.

Closes material-components/material-components-flutter-gallery#519

@perclasson perclasson force-pushed the back_button_on_android_should_close_cart branch from 87ea3b1 to 5008aa2 Compare January 28, 2020 13:23
@perclasson perclasson force-pushed the back_button_on_android_should_close_cart branch from 5008aa2 to 9747c6b Compare January 28, 2020 13:26
Copy link
Member

@guidezpl guidezpl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

██╗      ██████╗ ████████╗███╗   ███╗
██║     ██╔════╝ ╚══██╔══╝████╗ ████║
██║     ██║  ███╗   ██║   ██╔████╔██║
██║     ██║   ██║   ██║   ██║╚██╔╝██║
███████╗╚██████╔╝   ██║   ██║ ╚═╝ ██║
╚══════╝ ╚═════╝    ╚═╝   ╚═╝     ╚═╝

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Android system back button when Shrine cart is expanded pops back to home instead of dismissing cart. (2)
2 participants