|
@@ -1,5 +1,7 @@
|
|
|
import 'package:nomo/config/theme/theme_extensions/theme_extension.dart';
|
|
import 'package:nomo/config/theme/theme_extensions/theme_extension.dart';
|
|
|
|
|
|
|
|
|
|
+import '../../config/translations/localization_service.dart';
|
|
|
|
|
+
|
|
|
class Assets {
|
|
class Assets {
|
|
|
// 国旗
|
|
// 国旗
|
|
|
static String getCountryFlagImage(String contryCode) {
|
|
static String getCountryFlagImage(String contryCode) {
|
|
@@ -84,13 +86,42 @@ class Assets {
|
|
|
static const String _testLight = 'assets/images/light/test.png';
|
|
static const String _testLight = 'assets/images/light/test.png';
|
|
|
static const String _freeLight = 'assets/images/light/free.png';
|
|
static const String _freeLight = 'assets/images/light/free.png';
|
|
|
|
|
|
|
|
|
|
+ // 标签资源 - Dark 版本 (CN)
|
|
|
|
|
+ static const String _premiumDarkCn = 'assets/images/dark/premium_cn.png';
|
|
|
|
|
+ static const String _premiumExpiredDarkCn =
|
|
|
|
|
+ 'assets/images/dark/premium_expired_cn.png';
|
|
|
|
|
+ static const String _testDarkCn = 'assets/images/dark/test_cn.png';
|
|
|
|
|
+ static const String _freeDarkCn = 'assets/images/dark/free_cn.png';
|
|
|
|
|
+
|
|
|
|
|
+ // 标签资源 - Light 版本 (CN)
|
|
|
|
|
+ static const String _premiumLightCn = 'assets/images/light/premium_cn.png';
|
|
|
|
|
+ static const String _premiumExpiredLightCn =
|
|
|
|
|
+ 'assets/images/light/premium_expired_cn.png';
|
|
|
|
|
+ static const String _testLightCn = 'assets/images/light/test_cn.png';
|
|
|
|
|
+ static const String _freeLightCn = 'assets/images/light/free_cn.png';
|
|
|
|
|
+
|
|
|
// 根据主题获取标签资源
|
|
// 根据主题获取标签资源
|
|
|
- static String get premium =>
|
|
|
|
|
- ReactiveTheme.isLightTheme ? _premiumLight : _premiumDark;
|
|
|
|
|
- static String get premiumExpired =>
|
|
|
|
|
- ReactiveTheme.isLightTheme ? _premiumExpiredLight : _premiumExpiredDark;
|
|
|
|
|
- static String get test => ReactiveTheme.isLightTheme ? _testLight : _testDark;
|
|
|
|
|
- static String get free => ReactiveTheme.isLightTheme ? _freeLight : _freeDark;
|
|
|
|
|
|
|
+ static String get premium => LocalizationService.isChinese()
|
|
|
|
|
+ ? (ReactiveTheme.isLightTheme ? _premiumLightCn : _premiumDarkCn)
|
|
|
|
|
+ : (ReactiveTheme.isLightTheme ? _premiumLight : _premiumDark);
|
|
|
|
|
+
|
|
|
|
|
+ static String get premiumExpired => LocalizationService.isChinese()
|
|
|
|
|
+ ? (ReactiveTheme.isLightTheme
|
|
|
|
|
+ ? _premiumExpiredLightCn
|
|
|
|
|
+ : _premiumExpiredDarkCn)
|
|
|
|
|
+ : (ReactiveTheme.isLightTheme
|
|
|
|
|
+ ? _premiumExpiredLight
|
|
|
|
|
+ : _premiumExpiredDark);
|
|
|
|
|
+
|
|
|
|
|
+ static String get test => LocalizationService.isChinese()
|
|
|
|
|
+ ? (ReactiveTheme.isLightTheme ? _testLightCn : _testDarkCn)
|
|
|
|
|
+ : (ReactiveTheme.isLightTheme ? _testLight : _testDark);
|
|
|
|
|
+
|
|
|
|
|
+ static String get free => LocalizationService.isChinese()
|
|
|
|
|
+ ? (ReactiveTheme.isLightTheme ? _freeLightCn : _freeDarkCn)
|
|
|
|
|
+ : (ReactiveTheme.isLightTheme ? _freeLight : _freeDark);
|
|
|
|
|
+
|
|
|
|
|
+ //LocalizationService.isCn()
|
|
|
|
|
|
|
|
// 评价
|
|
// 评价
|
|
|
static const String poutingFace = 'assets/vectors/boost/pouting_face.svg';
|
|
static const String poutingFace = 'assets/vectors/boost/pouting_face.svg';
|