Skip to content

Commit 26da1db

Browse files
committed
'feat:修改命名内容'
1 parent acd8151 commit 26da1db

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

lib/controller/index.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:efox_flutter/utils/appVersion.dart' show AppVersion;
55

66
void initState() {
77
// 获取版本号
8-
Store.valueNotCtx<ConfigModel>().$getAppVersion();
8+
Store.valueNotCtx<ConfigModel>().getAppVersion();
99
// 登录
1010
Store.valueNotCtx<UserModel>().getLocalUserInfo();
1111
Future.delayed(Duration(seconds: 3), () {

lib/main.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class MainAppState extends State<MainApp> {
3131

3232
@override
3333
Widget build(BuildContext context) {
34-
Store.value<ConfigModel>(context).$getTheme();
34+
Store.value<ConfigModel>(context).getTheme();
3535

3636
return Store.connect<ConfigModel>(
3737
builder: (context, child, model) {

lib/page/mine/index.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ class _IndexState extends State<Index> {
140140
Widget Edage(name, color, context) {
141141
return GestureDetector(
142142
onTap: () {
143-
Store.value<ConfigModel>(context).$setTheme(name);
143+
Store.value<ConfigModel>(context).setTheme(name);
144144
},
145145
child: Container(
146146
color: Color(color),

lib/store/models/config_state_model.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ class ConfigInfo {
1212
}
1313

1414
class ConfigModel extends ConfigInfo with ChangeNotifier {
15-
Future $getAppVersion() async {
15+
Future getAppVersion() async {
1616
PackageInfo packageInfo = await PackageInfo.fromPlatform();
1717
appVersion = await packageInfo.version;
1818
notifyListeners();
1919
}
2020

21-
Future $getTheme() async {
21+
Future getTheme() async {
2222
String _theme = await LocalStorage.get('theme');
2323
print('config get Theme ${_theme}');
2424
if (_theme != null) {
25-
$setTheme(_theme);
25+
setTheme(_theme);
2626
}
2727
}
2828

29-
Future $setTheme(payload) async {
29+
Future setTheme(payload) async {
3030
theme = payload;
3131
LocalStorage.set('theme', payload);
3232
notifyListeners();

0 commit comments

Comments
 (0)