-
-
Notifications
You must be signed in to change notification settings - Fork 287
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
feat: 4041 - now displaying user lists in "List" nav tab #4298
Conversation
New file: * `all_product_list_page.dart`: Page that lists all product lists. Impacted files: * `all_user_product_list_page.dart`: simplified thanks to a new not `async` getter of all user product lists * `dao_product_list.dart`: split the "get user lists" method in two - one not `async`, one `async` with barcode checks * `new_product_page.dart`: minor refactoring * `product_list_page.dart`: now using new page `AllProductListPage` in order to list all product lists * `product_list_popup_items.dart`: fixed a label; removed a class we don't use anymore as we put lists and actions in different buttons * `product_list_user_dialog_helper.dart`: minor refactoring
Hi @g123k! |
} | ||
final AppLocalizations appLocalizations = AppLocalizations.of(context); | ||
return SmoothScaffold( | ||
appBar: SmoothAppBar(title: Text('Select a list')), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you forgot to translate this one
It seems you also have an issue with a missing |
Impacted files: * `all_product_list_page.dart`: now `Stateless`; added a localized label * `app_en.arb`: added a label for the "select a list" title. * `new_product_page.dart`: minor fix after merge conflict
Thank you @g123k for your review!
|
Perfect! For that, just try a For the UI, what I propose is to validate your implementation with the screen and I will do some tests to potentially include it in a bottom sheet, but later and in another PR. The idea is not to block this PR. |
@g123k For the record I will not add |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I let the code as is.
And I work in parallel, to integrate it in a modal sheet.
Thanks for your work @monsieurtanuki!
What
Screenshot
Part of
Files
New file:
all_product_list_page.dart
: Page that lists all product lists.Impacted files:
all_user_product_list_page.dart
: simplified thanks to a new notasync
getter of all user product listsdao_product_list.dart
: split the "get user lists" method in two - one notasync
, oneasync
with barcode checksnew_product_page.dart
: minor refactoringproduct_list_page.dart
: now using new pageAllProductListPage
in order to list all product listsproduct_list_popup_items.dart
: fixed a label; removed a class we don't use anymore as we put lists and actions in different buttonsproduct_list_user_dialog_helper.dart
: minor refactoring