feat: main framework complete.

This commit is contained in:
2021-09-24 16:54:28 +08:00
parent 02640c6f08
commit d5c104c9a0
17 changed files with 236 additions and 55 deletions
+1
View File
@@ -1,3 +1,4 @@
class SPKeys {
static final String brightnessMode = 'BRIGHTNESS_MODE';
static final String userLanguage = 'USER_LANGUAGE';
}
+22
View File
@@ -0,0 +1,22 @@
import 'package:flutter/material.dart';
enum SupportedLocale {
zh_CN,
en,
}
const zh_CN = Locale('zh', 'CN');
const en = Locale('en');
const supportedLocales = [
zh_CN,
en,
];
const supportedLocaleNames = {
SupportedLocale.zh_CN: '简体中文',
SupportedLocale.en: 'English',
};
Locale getSupportedLocale(SupportedLocale supportedLocale) => supportedLocales[supportedLocale.index];