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

fix: no pop when it is not at top #88

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aquadesk
Copy link

@aquadesk aquadesk commented Apr 30, 2022

Status

READY

Breaking Changes

NO

Description

fix #84 #77

This prevent popping when another modal is on top of flow builder

Type of Change

  • ✨ New feature (non-breaking change which adds functionality)
  • 🛠️ Bug fix (non-breaking change which fixes an issue)
  • ❌ Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 Code refactor
  • ✅ Build configuration change
  • 📝 Documentation
  • 🗑️ Chore
  • 🧪 Testing

@aquadesk aquadesk requested a review from felangel as a code owner April 30, 2022 08:25
@felangel
Copy link
Owner

#89 has been merged to address #84. Can you re-test and let us know if you're still experiencing issues?

@@ -135,7 +135,7 @@ class _FlowBuilderState<T> extends State<FlowBuilder<T>> {
}

Future<bool> _pop() async {
if (mounted) {
if (mounted && (ModalRoute.of(context)?.isCurrent ?? false)) {
Copy link
Owner

Choose a reason for hiding this comment

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

can we add a test for this?

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.

Cannot pop the page with Android back button when using Navigator.push<Type>
2 participants