feat:增加TDesign组件库
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import 'package:fitnote/utils/record_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:getwidget/getwidget.dart';
|
||||
import 'package:tdesign_flutter/tdesign_flutter.dart';
|
||||
|
||||
Widget buildCardTitle({
|
||||
required BuildContext context,
|
||||
@@ -70,17 +69,14 @@ Widget buildProgressItem({
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
GFProgressBar(
|
||||
animation: true,
|
||||
lineHeight: 20,
|
||||
percentage: progress,
|
||||
progressBarColor: color,
|
||||
child: Text(
|
||||
'${roundNum(progress * 100)}%',
|
||||
textAlign: TextAlign.end,
|
||||
style: TextStyle(color: Colors.white),
|
||||
),
|
||||
),
|
||||
TDProgress(
|
||||
type: TDProgressType.linear,
|
||||
progressStatus: TDProgressStatus.primary,
|
||||
value: progress,
|
||||
color: color,
|
||||
strokeWidth: 20,
|
||||
progressLabelPosition: TDProgressLabelPosition.inside,
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user