Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always have closable snackbars #1435

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

micahmo
Copy link
Member

@micahmo micahmo commented Jun 7, 2024

Pull Request Description

This is a small PR which makes the snackbar always closable by default. I figured this would good to add because not all people know that it can be swiped away, and sometimes they appear for a long time (if there is a lot of text). And also, depending on where the snackbar appears, the swipe gesture can interfere can system gestures. The close button doesn't take up much space, and it is still compatible with other trailing icons/actions.

I also changed the snackbar actions from using GestureDetectors to using InkWells for the tap animation.

Review without whitespace.

Copy link
Member

@hjiangsu hjiangsu left a comment

Choose a reason for hiding this comment

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

LGTM!

@hjiangsu hjiangsu merged commit 550823c into thunder-app:develop Jun 8, 2024
1 check passed
@micahmo micahmo deleted the feature/closable-snackbars branch June 9, 2024 03:56
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.

3 participants