-
-
Notifications
You must be signed in to change notification settings - Fork 50
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
Complete 'Add Grade Dialog' #1456
Conversation
Icon getIcon() { | ||
return switch (this) { | ||
PredefinedGradeTypes.schoolReportGrade => | ||
const Icon(Symbols.contract, fill: 1), | ||
PredefinedGradeTypes.writtenExam => | ||
const Icon(Symbols.edit_document, fill: 1), | ||
PredefinedGradeTypes.oralParticipation => | ||
const Icon(Symbols.record_voice_over, fill: 1), | ||
PredefinedGradeTypes.vocabularyTest => | ||
const Icon(Symbols.text_rotation_none, fill: 1), | ||
PredefinedGradeTypes.presentation => | ||
const Icon(Symbols.co_present, fill: 1), | ||
PredefinedGradeTypes.other => | ||
const Icon(Symbols.other_admission, fill: 1), | ||
}; | ||
} |
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.
Not sure if we want to change the location where we make this switch statement. Later, we will also load dynamically the icon for custom grade types (created by the user).
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.
Leave it there for now, we'll figure something out in the future
Visit the preview URL for this PR (updated for commit 79eae41): https://sharezone-test--pr1456-add-grade-logic-hnafvxvt.web.app (expires Sat, 20 Apr 2024 15:48:19 GMT) 🔥 via Firebase Hosting GitHub Action 🌎 Sign: 4cb3ae61e1e018abfd9841fd3239f5b49ccc034b |
…n grading system does not match
Padding( | ||
padding: const EdgeInsets.fromLTRB(12, 0, 12, 12), | ||
child: Text( | ||
'Der erste Wert entspricht der besten Noten, z.B. bei dem Notensystem "1 - 6" ist "1" die beste Note.', |
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.
This isn't something that affects the calculations but will be important for the grading performance later
Yes |
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, LGTM 👍
Description
This PR completes the grade dialog to enter a new grade.
The dialog has the following "smart" features:
Demo
v.mp4
Screen.Recording.2024-04-17.at.10.36.46.mov
Open questions
Things for later