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

Placing Flushbar at the top route #142

Open
lokesh-osian opened this issue May 26, 2020 · 1 comment
Open

Placing Flushbar at the top route #142

lokesh-osian opened this issue May 26, 2020 · 1 comment

Comments

@lokesh-osian
Copy link

I have nested navigators(mainly two navigators) in my app. I shows the bottom sheet using the context of top navigator. When flushbar is opened it uses the closest navigator which is the second navigator. Whenever the flushbar and bottom sheet are shown simultaneously, and the duration (dismiss time) of flushbar is over, flushbar tries to close the bottom sheet also, because the bottom sheet is shown using the top navigator context. So I want to find a way to show the flushbar at the top route.

Flutter Version :- v1.12.13+hotfix.9
Flushbar Version :- 1.9.1

Here is the result of flutter doctor -v
`[✓] Flutter (Channel stable, v1.12.13+hotfix.9, on Linux, locale en_IN)
• Flutter version 1.12.13+hotfix.9 at
/home/osian-mum-vivobook-s430f-one/Development/Flutter/Sdk/flutter
• Framework revision f139b11009 (8 weeks ago), 2020-03-30 13:57:30 -0700
• Engine revision af51afceb8
• Dart version 2.7.2

[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
• Android SDK at /home/osian-mum-vivobook-s430f-one/Development/Android/Sdk
• Android NDK location not configured (optional; useful for native profiling
support)
• Platform android-29, build-tools 29.0.3
• Java binary at: /snap/android-studio/88/android-studio/jre/bin/java
• Java version OpenJDK Runtime Environment (build
1.8.0_212-release-1586-b4-5784211)
• All Android licenses accepted.

[✓] Android Studio (version 3.6)
• Android Studio at /snap/android-studio/88/android-studio
• Flutter plugin version 42.0.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build
1.8.0_212-release-1586-b4-5784211)

[✓] Connected device (1 available)
• Redmi 5A • 85dd96e07ce5 • android-arm64 • Android 8.1.0 (API 27)

@edgarfroes
Copy link

edgarfroes commented May 29, 2020

Have you tried sending the context of the father to the child and firing up the show() method with the context in it?

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

No branches or pull requests

2 participants