-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
Make bottom navigation bar sticky (it should be available on every page). #678
Comments
For the moment there are 3 bottom tabs in the home page: preferences, scan and history. Only one is selected at a given time. |
The previous bottom navigation bottom bar was refactored, in order to be reused anywhere. Then it was added to the product page. Deleted files: * `home_page.dart` * `smooth_ui_library/smooth_bottom_navigation_bar.dart` * `smooth_ui_library/smooth_bottom_navigation_bar_item.dart` New file: * `smooth_bottom_navigation_bar.dart` Impacted files: * `continuous_scan_page.dart`: added an explicit bottom navigation bar (was implicit through `HomePage`) * `main.dart`: not using `HomePage` anymore; asking the bottom navigation bar who's the current page instead * `new_product_page.dart`: added an explicit bottom navigation bar (was not there) * `product_list_page.dart`: added an explicit bottom navigation bar (was implicit through `HomePage`) * `product_page.dart`: added an explicit bottom navigation bar (was not there) * `smooth_ui_library.dart`: removed "UI" version of smooth bottom navigation bar * `user_preferences.dart`: added a preference for tab index * `user_preferences_page.dart`: added an explicit bottom navigation bar (was implicit through `HomePage`)
Oh btw, in case you didn't start working on this, I already have a solution. But if you did, then go for it |
I've already PR'ed (#679). But anyway it took me about one hour - if eventually your solution is to be used instead that wouldn't be such a problem. |
Will have a look tomorrow 👌🏽 |
Impacted files: * `continuous_scan_page.dart`: explicitly select the "scan" tab * `new_product_page.dart`: implicitly select the "default" tab * `product_list_page.dart`: explicitly select the "history" tab * `product_page.dart`: implicitly select the "default" tab * `smooth_bottom_navigation_bar.dart`: now explicitly selecting the tab, instead of storing it in preferences * `user_preferences.dart`: removed tab index preference * `user_preferences_page.dart`: explicitly select the "profile" tab
Impacted file: * `main.dart`: implicitly select the "default" tab and the matching page
The previous bottom navigation bottom bar was refactored, in order to be reused anywhere. Then it was added to the product page. Deleted files: * `home_page.dart` * `smooth_ui_library/smooth_bottom_navigation_bar.dart` * `smooth_ui_library/smooth_bottom_navigation_bar_item.dart` New file: * `smooth_bottom_navigation_bar.dart` Impacted files: * `continuous_scan_page.dart`: added an explicit bottom navigation bar (was implicit through `HomePage`), explicitly on the "scan" tab * `main.dart`: not using `HomePage` anymore; opens the "scan" page by default * `new_product_page.dart`: added an explicit bottom navigation bar (was not there), implicitly on the "default" tab * `product_list_page.dart`: added an explicit bottom navigation bar (was implicit through `HomePage`), explicitly on the "history" tab * `product_page.dart`: added an explicit bottom navigation bar (was not there), implicitly on the "default" tab * `smooth_ui_library.dart`: removed "UI" version of smooth bottom navigation bar * `user_preferences_page.dart`: added an explicit bottom navigation bar (was implicit through `HomePage`), explicitly on the "profile" tab
Done in #679. |
No description provided.
The text was updated successfully, but these errors were encountered: