Hi, thanks for the library, it really eases my life.
I have following problem, I need to show popup dialog, so for that I am using showDialog(...) method and when flutter opens it, under the hood it uses:
Navigator.of(context, rootNavigator: useRootNavigator).push<T>(DialogRoute<T>(...)
and for closing uses:
Navigator.pop(context)
which is messing my context
for example I have following scenario:
screen with form that contains button that calls showDialog, and button to validate the form, when dialog is not shown everything is correct, but when dialog is shown, and after it is closed, I lose all data from the form, my context is clear and when I am clicking validate button nothing happens, until I click to the form widget in any place, then everything is okay again
I am pretty new to flutter, so maybe the problem is not in riverpod_navigator at all, pls help me to understand what is the problem and how I can fix it.
many thanks
Hi, thanks for the library, it really eases my life.
I have following problem, I need to show popup dialog, so for that I am using showDialog(...) method and when flutter opens it, under the hood it uses:
Navigator.of(context, rootNavigator: useRootNavigator).push<T>(DialogRoute<T>(...)
and for closing uses:
Navigator.pop(context)
which is messing my contextfor example I have following scenario: screen with form that contains button that calls showDialog, and button to validate the form, when dialog is not shown everything is correct, but when dialog is shown, and after it is closed, I lose all data from the form, my context is clear and when I am clicking validate button nothing happens, until I click to the form widget in any place, then everything is okay again I am pretty new to flutter, so maybe the problem is not in riverpod_navigator at all, pls help me to understand what is the problem and how I can fix it. many thanks