feat:增加TDesign组件库

This commit is contained in:
2026-01-05 15:33:43 +08:00
parent 2b334edf2f
commit 00c8e82a65
18 changed files with 364 additions and 304 deletions

View File

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