DiscoTrayStudios / WaterQualityTester

An app that analyzes water test strips from Varify and aggregates the results for geographic analysis
MIT License
1 stars 3 forks source link

Changed UI and added Source Description Page #42

Closed Larsonog closed 1 year ago

Larsonog commented 1 year ago

Creates a directed flow of the app and adds more data to be collected with the source description page

Closes #40, #35

reidst commented 1 year ago

In pages/results.dart, line 5 tries to import widgets/homeNavBar.dart which was moved to the notNeeded directory. The home button at the bottom of the results page still tries to navigate to HomeNavBar rather than SourceDescriptionPage (the new "home" page).

I would recommend using Navigator.pushAndRemoveUntil(), which pushes a new page and removes the previous route path based on a predicate function. Using (route) => false as a predicate will remove all previous routes, resetting the navigation path. This prevents there from being back arrows on the app bars that allow the user to un-navigate, and keeps the widget tree cleaner.