watch_theme_models.dart 4.35 KB
import 'package:doublefeel_flutter/r.dart';
import 'package:flutter/foundation.dart';

class WatchThemeItem {
  const WatchThemeItem({
    this.id,
    this.isCustomTheme = false,
    this.isDefaultCharacter = false,
    required this.title,
    required this.infoList,
  });

  final int? id;
  final bool isDefaultCharacter;
  final bool isCustomTheme;
  final String title;
  final List<WatchThemeItemInfo> infoList;
}

class WatchThemeItemInfo {
  final String title;
  final String? imgUrl;
  final String? assetPath;

  WatchThemeItemInfo({required this.title, this.imgUrl, this.assetPath});
}

final officialThemes = <WatchThemeItem>[
  WatchThemeItem(
    title: '默认主题',
    isDefaultCharacter: true,
    infoList: [
      WatchThemeItemInfo(
        title: '状态优秀',
        assetPath: 'assets/images/watch_theme/official_default_green.png',
      ),
      WatchThemeItemInfo(
        title: '状态正常',
        assetPath: 'assets/images/watch_theme/official_default_blue.png',
      ),
      WatchThemeItemInfo(
        title: '注意压力',
        assetPath: 'assets/images/watch_theme/official_default_orange.png',
      ),
      WatchThemeItemInfo(
        title: '压力过载',
        assetPath: 'assets/images/watch_theme/official_default_red.png',
      ),
    ],
  ),
  WatchThemeItem(
    title: '垂耳粉兔',
    infoList: [
      WatchThemeItemInfo(
        title: '状态优秀',
        assetPath: 'assets/images/watch_theme/official_rabbit_pink.png',
      ),
      WatchThemeItemInfo(
        title: '状态正常',
        assetPath: 'assets/images/watch_theme/official_rabbit_pink.png',
      ),
      WatchThemeItemInfo(
        title: '注意压力',
        assetPath: 'assets/images/watch_theme/official_rabbit_pink.png',
      ),
      WatchThemeItemInfo(
        title: '压力过载',
        assetPath: 'assets/images/watch_theme/official_rabbit_pink.png',
      ),
    ],
  ),
  WatchThemeItem(
    title: '蓝象哥哥',
    infoList: [
      WatchThemeItemInfo(
        title: '状态优秀',
        assetPath: 'assets/images/watch_theme/official_elephant_blue.png',
      ),
      WatchThemeItemInfo(
        title: '状态正常',
        assetPath: 'assets/images/watch_theme/official_elephant_blue.png',
      ),
      WatchThemeItemInfo(
        title: '注意压力',
        assetPath: 'assets/images/watch_theme/official_elephant_blue.png',
      ),
      WatchThemeItemInfo(
        title: '压力过载',
        assetPath: 'assets/images/watch_theme/official_elephant_blue.png',
      ),
    ],
  ),
  WatchThemeItem(
    title: '小狗白白',
    infoList: [
      WatchThemeItemInfo(
        title: '状态优秀',
        assetPath: 'assets/images/watch_theme/official_dog_white.png',
      ),
      WatchThemeItemInfo(
        title: '状态正常',
        assetPath: 'assets/images/watch_theme/official_dog_white.png',
      ),
      WatchThemeItemInfo(
        title: '注意压力',
        assetPath: 'assets/images/watch_theme/official_dog_white.png',
      ),
      WatchThemeItemInfo(
        title: '压力过载',
        assetPath: 'assets/images/watch_theme/official_dog_white.png',
      ),
    ],
  ),
  WatchThemeItem(
    title: '猫猫狗狗',
    infoList: [
      WatchThemeItemInfo(
        title: '状态优秀',
        assetPath: 'assets/images/watch_theme/custom_cat_dog.png',
      ),
      WatchThemeItemInfo(
        title: '状态正常',
        assetPath: 'assets/images/watch_theme/custom_cat_dog.png',
      ),
      WatchThemeItemInfo(
        title: '注意压力',
        assetPath: 'assets/images/watch_theme/custom_cat_dog.png',
      ),
      WatchThemeItemInfo(
        title: '压力过载',
        assetPath: 'assets/images/watch_theme/custom_cat_dog.png',
      ),
    ],
  ),
];

final customThemes = <WatchThemeItem>[
  WatchThemeItem(
    title: '猫猫狗狗-AAA',
    infoList: [
      WatchThemeItemInfo(
        title: '状态优秀',
        assetPath: 'assets/images/watch_theme/custom_cat_dog.png',
      ),
      WatchThemeItemInfo(
        title: '状态正常',
        assetPath: 'assets/images/watch_theme/custom_cat_dog.png',
      ),
      WatchThemeItemInfo(
        title: '注意压力',
        assetPath: 'assets/images/watch_theme/custom_cat_dog.png',
      ),
      WatchThemeItemInfo(
        title: '压力过载',
        assetPath: 'assets/images/watch_theme/custom_cat_dog.png',
      ),
    ],
  ),
];