I am experiencing an issue with the PlutoGrid widget in my Flutter application. When I navigate to a page containing PlutoGrid from the home page, phone navigation(back button or swipe back) on Android devices does not work. Only AppBar back arrow works. I would like to request assistance in resolving this issue or understanding if there is a workaround.
Steps to Reproduce:
1) Create a new Flutter Project.
2) Add the pluto_grid package to pubspec.yaml.
3) Create a home page with a text form field and button to navigate to another page containing PlutoGrid.
4) Run the app on an Android device.
5) Click on Text Form Field
6) Navigate from the home page to the page with PlutoGrid by pressing button.
6) Try to swipe back to the home page using the Android system gesture or use Android back button.
Expected Behavior:
The swipe back gesture or back button should navigate back to the home page.
Actual Behavior:
The swipe back gesture is disabled and does not navigate back to the home page
Explanation
1) Define Routes:
In the MaterialApp widget, the routes parameter is used to define the named routes. The initial route (/) is set to the HomePage.
2) Navigation:
In the HomePage widget, the button's onPressed callback uses Navigator.pushNamed(context, '/plutoGridPage') to navigate to the PlutoGridPage.
3) PlutoGridPage:
This page contains the PlutoGrid.
Description:
I am experiencing an issue with the PlutoGrid widget in my Flutter application. When I navigate to a page containing PlutoGrid from the home page, phone navigation(back button or swipe back) on Android devices does not work. Only AppBar back arrow works. I would like to request assistance in resolving this issue or understanding if there is a workaround.
Steps to Reproduce:
1) Create a new Flutter Project. 2) Add the pluto_grid package to pubspec.yaml. 3) Create a home page with a text form field and button to navigate to another page containing PlutoGrid. 4) Run the app on an Android device. 5) Click on Text Form Field 6) Navigate from the home page to the page with PlutoGrid by pressing button. 6) Try to swipe back to the home page using the Android system gesture or use Android back button.
Expected Behavior:
The swipe back gesture or back button should navigate back to the home page.
Actual Behavior:
The swipe back gesture is disabled and does not navigate back to the home page
Code Sample:
Explanation 1) Define Routes: In the MaterialApp widget, the routes parameter is used to define the named routes. The initial route (/) is set to the HomePage.
2) Navigation: In the HomePage widget, the button's onPressed callback uses Navigator.pushNamed(context, '/plutoGridPage') to navigate to the PlutoGridPage.
3) PlutoGridPage: This page contains the PlutoGrid.
Video
https://github.com/bosskmk/pluto_grid/assets/129219828/ce31e08c-bc1e-4d06-bb6e-9a6afaa0cf53
Additional Context:
Please let me know if there is any additional information required or if there is a known workaround for this issue. Thank you for your assistance!