* style and functionality changes to level up notification * generated * chore: return construct summary directly from function instead of waiting for state event to be sent * generated * XP animation bug, asking wilson to take a look * updated XP attributes but still facing XP retrieval bug * generated * Added new DinoBot image * updated dinoBot image, added padding on sides to table row, fixed duplicate variable naming error * generated * chore: some updates to simplify level up widget * chore: remove dino asset from pubspec.yaml * chore: revert testing changes to analytics controller * See details categories do not display unless XP gained above threshold * generated * chore: update icons in construct update popup above messages --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: ggurdin <ggurdin@gmail.com>
33 lines
935 B
Dart
33 lines
935 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_gen/gen_l10n/l10n.dart';
|
|
import 'package:material_symbols_icons/symbols.dart';
|
|
|
|
enum LearningSkillsEnum {
|
|
writing(isVisible: true, icon: Symbols.edit_square),
|
|
reading(isVisible: true, icon: Symbols.two_pager),
|
|
speaking(isVisible: false),
|
|
hearing(isVisible: true, icon: Icons.volume_up),
|
|
other(isVisible: false);
|
|
|
|
final bool isVisible;
|
|
final IconData icon;
|
|
|
|
const LearningSkillsEnum({
|
|
required this.isVisible,
|
|
this.icon = Icons.question_mark,
|
|
});
|
|
|
|
String tooltip(BuildContext context) {
|
|
switch (this) {
|
|
case LearningSkillsEnum.writing:
|
|
return L10n.of(context).writingExercisesTooltip;
|
|
case LearningSkillsEnum.reading:
|
|
return L10n.of(context).readingExercisesTooltip;
|
|
case LearningSkillsEnum.hearing:
|
|
return L10n.of(context).listeningExercisesTooltip;
|
|
default:
|
|
return "";
|
|
}
|
|
}
|
|
}
|