target_modify_model.dart 349 B

123456789101112131415
  1. import 'package:sport/provider/lib/view_state_model.dart';
  2. class TargetModifyModel extends ViewStateModel {
  3. static List<String> tags = ["休闲", "强身", "减肥", "增肌", "自定义"];
  4. String _current = tags[0];
  5. set current(String tag) {
  6. _current = tag;
  7. notifyListeners();
  8. }
  9. String get current {
  10. return _current;
  11. }
  12. }