mirror of
https://github.com/asjqkkkk/flutter-todos.git
synced 2025-08-26 05:59:08 +08:00
用户名自定义完成!
This commit is contained in:
@ -21,6 +21,9 @@ class MainPageModel extends ChangeNotifier {
|
||||
//当前的头像url,比如本地的就是本地路径,网络就是网络地址
|
||||
String currentAvatarUrl = "images/icon.png";
|
||||
|
||||
//当前的用户名
|
||||
String currentUserName = "";
|
||||
|
||||
//是否开启天气
|
||||
bool enableWeatherShow = false;
|
||||
|
||||
@ -39,6 +42,7 @@ class MainPageModel extends ChangeNotifier {
|
||||
[
|
||||
logic.getTasks(),
|
||||
logic.getCurrentAvatar(),
|
||||
logic.getCurrentUserName(),
|
||||
],
|
||||
).then((value) {
|
||||
refresh();
|
||||
|
Reference in New Issue
Block a user