hcProgress method
Circular Progressbar
Implementation
Widget hcProgress({
Color color = Colors.blue,
}) {
return Container(
alignment: Alignment.center,
child: Card(
semanticContainer: true,
clipBehavior: Clip.antiAliasWithSaveLayer,
elevation: 4,
margin: const EdgeInsets.all(4),
shape: RoundedRectangleBorder(borderRadius: hcRadius(50)),
child: Container(
width: 45,
height: 45,
padding: const EdgeInsets.all(8.0),
child: Theme(
data: ThemeData(
colorScheme:
ColorScheme.fromSwatch().copyWith(secondary: color)),
child: const CircularProgressIndicator(
strokeWidth: 3,
),
),
),
),
);
}