felangel / felangel/flow_builder

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

未关闭
#39 9 条评论 2 个 reaction 已指派 1 人 已被 @jonathankao97 认领 在 GitHub 查看
question
主要语言
Dart
星标
416
派生
68
PR 合并指标
30 天内没有已合并 PR

描述

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)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。