feat: change progress indicator

This commit is contained in:
Simon Ding
2024-07-13 19:34:01 +08:00
parent 8ae1c09d83
commit 50a237df25
8 changed files with 103 additions and 63 deletions

View File

@@ -0,0 +1,20 @@
import 'package:flutter/material.dart';
class MyProgressIndicator extends StatelessWidget {
double size;
Color? color;
double? value;
MyProgressIndicator({super.key, this.size = 30, this.color, this.value});
@override
Widget build(BuildContext context) {
return Center(
child: SizedBox(
width: size,
height: size,
child: CircularProgressIndicator(
color: color,
value: value,
)));
}
}