felangel / felangel/flow_builder

Android physic back button doesn't close showModalBottomSheet when is open

Ouverte
#39 9 commentaires 2 réactions 1 personne assignée Réclamée par @jonathankao97 Voir sur GitHub
question
Langage dominant
Dart
Étoiles
416
Forks
68
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

When i use showModalBottomSheet and pressed back button on Android, it pops the Flow pages instead of close ModalBottomSheet.

Navigator.pop(context ""bottomsheet context"") close the bottomsheet
I tried to put a WillPopScope in the BottomSheet children and call Navigator.pop but it doesn't catch the event

Do you have any idea ?

My use case:
MaterialApp > FlowBuilder > [FlowBuilder > BottomSheet] <== is poped (and not BottomSheet itself)

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.