-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Mobile 14 #43
Conversation
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.
Nice implementation. I've left few notes and proposed bunch of changes. I guess some may be questionable, so if you disagree we can always discuss. Hopefully, I'm not forcing my coding style here too much on all of you guys.
🦈
lib/features/student_research_group_tab/scientific_circles_tab_controller.dart
Outdated
Show resolved
Hide resolved
lib/features/student_research_group_tab/widgets/scientific_circle_card.dart
Outdated
Show resolved
Hide resolved
lib/widgets/loading_widgets/specific_imitations/button_loading.dart
Outdated
Show resolved
Hide resolved
lib/features/student_research_group_tab/scientific_circles_tab.dart
Outdated
Show resolved
Hide resolved
lib/features/student_research_group_tab/scientific_circles_tab.dart
Outdated
Show resolved
Hide resolved
lib/features/student_research_group_tab/scientific_circles_tab.dart
Outdated
Show resolved
Hide resolved
lib/features/student_research_group_tab/scientific_circles_tab.dart
Outdated
Show resolved
Hide resolved
lib/features/student_research_group_tab/scientific_circles_tab.dart
Outdated
Show resolved
Hide resolved
lib/features/student_research_group_tab/scientific_circles_tab.dart
Outdated
Show resolved
Hide resolved
lib/repositories/scientific_circles/scientific_circles_repository.dart
Outdated
Show resolved
Hide resolved
…rom element.description to element.department.name
I applied changes according to your CR and also changed the search query in
Also I noticed that now there's a bug that if you open the tab there is "Wszystkie" selected but there aren't any circles shown. If you click on other tag and come back to "Wszystkie" they are all present. Like the view is not waiting for data while it renders. I have this issue after applying the changes and for now I don't know where is the problem as the ScientificCirclesDataView should render only if the circles list is present. |
It's ok to use force unwrapping in this case, cause you manually check it before and there's no option this will cause an error: element.department == null ||
element.department!.name.toLowerCase().contains(query.toLowerCase()) if However, if you want, then you can do it this way too: element.department?.name.toLowerCase().contains(query.toLowerCase()) !=
false OR element.department?.name.toLowerCase().contains(query.toLowerCase()) !=
true the behaviour will be different, you should use either use But as I said, force checks are ok if we manually check if the value is null or not with |
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.
So here's a fix for the bug you've mentioned. Also few really simple notes. Good work here!
lib/features/student_research_group_tab/repositories/selected_tag_controller.dart
Outdated
Show resolved
Hide resolved
After above changes you can merge |
#26
Implemented Research Group Tab according to UI v1.0.0 with redirection to Study Circles detail view.