screens/main/score/score_view_helpers library

Functions

getAwardQuota(int totalStudents) → int
Computes the award quota based on group size according to NTUT regulations.
getScoreColor(BuildContext context, ScoreDetail score) → Color
getScoreStatusText(ScoreStatus? status) → String
hasGoldenRanking(List<UserSemesterRanking> rankings) → bool
Returns whether a list of UserSemesterRanking entries qualifies for the golden award.
isGoldenRanking({required int rank, required int total}) → bool
Returns whether a specific rank out of total qualifies for the academic award.