felangel / flow_builder

Flutter Flows made easy! A Flutter package which simplifies navigation flows with a flexible, declarative API.
https://pub.dev/packages/flow_builder
MIT License
389 stars 63 forks source link

BackButton onPressed returns black screen on iOS/Android #30

Closed doncyc closed 3 years ago

doncyc commented 3 years ago

Describe the bug Clicking the BackButton on iOS/Android returns a black screen Edit: also if the page has a drawer, the navigator.pop method would need to be called in order to close the drawer, which accidentally invoke certain buggy behaviour of Flow Builder, thanks for any fixes.

To Reproduce Steps to reproduce the behavior:

  1. Set leading of app bar to BackButton
  2. Method of BackButton: context .flow() .complete();
  3. Run on any devices
  4. Clicking the BackButton returns a black screen

Expected behavior It works if the system back button is pressed on android. It should return to the previous page.

Paste the output of running flutter doctor -v here. [✓] Flutter (Channel master, 1.24.0-8.0.pre.374, on macOS 11.0 20A2411 darwin-arm, locale en-HK) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Xcode - develop for iOS and macOS (Xcode 12.3) [✓] Android Studio (version 4.1) [✓] VS Code (version 1.52.1) [✓] Connected device (1 available)