-
Notifications
You must be signed in to change notification settings - Fork 18
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
UC classes page redesign #1438
base: ui/redesign
Are you sure you want to change the base?
UC classes page redesign #1438
Conversation
…al scrolling through all the classes.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## ui/redesign #1438 +/- ##
===========================================
- Coverage 11% 11% -0%
===========================================
Files 270 271 +1
Lines 7358 7415 +57
===========================================
Hits 807 807
- Misses 6551 6608 +57 |
…se unit classes view
Screen_Recording_20250123_184923.mp4 |
packages/uni_app/lib/view/course_unit_info/widgets/course_unit_student_tile.dart
Outdated
Show resolved
Hide resolved
packages/uni_app/lib/view/course_unit_info/widgets/course_unit_classes.dart
Outdated
Show resolved
Hide resolved
packages/uni_app/lib/view/course_unit_info/widgets/course_unit_classes.dart
Outdated
Show resolved
Hide resolved
super.initState(); | ||
final sessionProvider = context.read<SessionProvider>(); | ||
final studentNumber = int.tryParse( | ||
sessionProvider.state!.username.replaceAll(RegExp(r'\D'), ''), |
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.
Care for the !
operator. Make sure sessionProvider.state
is not null.
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.
? lightTheme.textTheme.labelMedium?.copyWith( | ||
color: lightTheme.colorScheme.onPrimary, | ||
) |
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.
Is the copyWith
being used due to an error in the theme?
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.
in figma, both the selected and unselected text are with their typography set to labelMedium
, however they are different colors. selected is light/background
and unselected is light/gray-middle
. In our theme.dart
file, labelMedium
is set to grayMiddle
, so that's why I put the white color there.
Closes #1433
Review checklist
whatsnew/whatsnew-pt-PT
changelog.md
with the change