mirror of
https://github.com/asjqkkkk/flutter-todos.git
synced 2025-08-26 05:59:08 +08:00
✨:
1.Add upload avatar to server 2.Add change username to server
This commit is contained in:
@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:todo_list/database/database.dart';
|
||||
import 'package:todo_list/logic/all_logic.dart';
|
||||
import 'package:todo_list/json/task_bean.dart';
|
||||
import 'package:todo_list/widgets/net_loading_widget.dart';
|
||||
|
||||
import 'global_model.dart';
|
||||
|
||||
@ -11,27 +12,32 @@ class MainPageModel extends ChangeNotifier {
|
||||
final GlobalKey<ScaffoldState> scaffoldKey = GlobalKey<ScaffoldState>();
|
||||
List<TaskBean> tasks = [];
|
||||
|
||||
//当前滑动的卡片位置
|
||||
///当前滑动的卡片位置
|
||||
int currentCardIndex = 0;
|
||||
|
||||
//当前点击进入详情页的index,方便在详情页里面操作删除、更新等
|
||||
///当前点击进入详情页的index,方便在详情页里面操作删除、更新等
|
||||
int currentTapIndex = 0;
|
||||
|
||||
//当前头像的类型
|
||||
///当前头像的类型
|
||||
int currentAvatarType = CurrentAvatarType.defaultAvatar;
|
||||
|
||||
//当前的头像url,比如本地的就是本地路径,网络就是网络地址
|
||||
///当前的头像url,比如本地的就是本地路径,网络就是网络地址
|
||||
String currentAvatarUrl = "images/icon.png";
|
||||
|
||||
//当前的用户名
|
||||
///当前的用户名
|
||||
String currentUserName = "";
|
||||
|
||||
//是否开启天气
|
||||
///当前正在编辑中的用户名
|
||||
String currentEditingUserName = "";
|
||||
|
||||
///是否开启天气
|
||||
bool enableWeatherShow = false;
|
||||
|
||||
//当前位置信息
|
||||
///当前位置信息
|
||||
String currentPosition = "";
|
||||
|
||||
|
||||
|
||||
MainPageModel() {
|
||||
logic = MainPageLogic(this);
|
||||
}
|
||||
|
Reference in New Issue
Block a user