用户名自定义完成!

This commit is contained in:
oldchen
2019-07-25 18:12:09 +08:00
parent e3fbaa2425
commit d72baf1775
19 changed files with 232 additions and 62 deletions

View File

@ -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();