mirror of
https://github.com/simon-ding/polaris.git
synced 2026-04-21 19:27:30 +08:00
feat: change progress indicator
This commit is contained in:
20
ui/lib/widgets/progress_indicator.dart
Normal file
20
ui/lib/widgets/progress_indicator.dart
Normal 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,
|
||||
)));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user