bluefireteam / dashbook

Development tools to help you building UI on Flutter
MIT License
392 stars 43 forks source link

Add global `showDialog` method using non-root navigator #102

Closed Dohmanlechx closed 1 year ago

Dohmanlechx commented 1 year ago

Resolves https://github.com/bluefireteam/dashbook/issues/84.

This issue seems to arise in scenarios involving nested navigators within the application. When displaying a dialog, setting useRootNavigator: false ensures that it is pushed to the current navigator rather than the root one.

To enhance clarity for contributors, I've introduced a global method for displaying dialogs. This serves as a clear reminder not to push dialogs to the root navigator.