options.dart 1.0 KB

123456789101112131415161718192021222324252627
  1. import 'package:flutter/material.dart';
  2. import 'package:japp_flutter/core/models/dropdown_item.dart';
  3. // 挑战目标难度选项
  4. const List<DropdownItem<int>> challengeDifficultyOpts = [
  5. DropdownItem(value: 1, label: '简单', icon: Icons.sentiment_very_satisfied),
  6. DropdownItem(value: 2, label: '普通',icon: Icons.sentiment_satisfied),
  7. DropdownItem(value: 3, label: '困难',icon:Icons.sentiment_dissatisfied),
  8. DropdownItem(value: 4, label: '地狱',icon: Icons.sentiment_very_dissatisfied),
  9. ];
  10. // 选项常量(放在 constants.dart 或表单文件顶部)
  11. const List<DropdownItem<int>> challengeActionTypeOpts = [
  12. DropdownItem(value: 1, label: '愿景'),
  13. DropdownItem(value: 2, label: '战略目标'),
  14. DropdownItem(value: 3, label: '挑战目标'),
  15. DropdownItem(value: 4, label: '待办目标'),
  16. ];
  17. const List<DropdownItem<int>> challengeStatusOpts = [
  18. DropdownItem(value: 1, label: '正常'),
  19. DropdownItem(value: 2, label: '进行中'),
  20. DropdownItem(value: 3, label: '已完成'),
  21. DropdownItem(value: 4, label: '失败放弃'),
  22. ];