feat:增加TDesign组件库
This commit is contained in:
@@ -8,8 +8,8 @@ class HealthProvider with ChangeNotifier {
|
||||
RecordType type = RecordType.weight;
|
||||
bool isEditing = false;
|
||||
|
||||
num latestWeight = 0;
|
||||
num totalSpot = 0;
|
||||
double latestWeight = 0;
|
||||
double totalSpot = 0;
|
||||
num avgSleep = 0;
|
||||
|
||||
void initForm(HealthRecord record) {
|
||||
@@ -52,12 +52,12 @@ class HealthProvider with ChangeNotifier {
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void updateLatestWeight(num weight) {
|
||||
void updateLatestWeight(double weight) {
|
||||
latestWeight = weight;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
void updateTotalSpot(num duration) {
|
||||
void updateTotalSpot(double duration) {
|
||||
totalSpot = duration;
|
||||
notifyListeners();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user