xxxxxxxxxx
valueColor: new AlwaysStoppedAnimation<Color>(Colors.blue),
xxxxxxxxxx
SizedBox(
height: 100,
width: 100,
child: Center(
child: CircularProgressIndicator(),
),
)
xxxxxxxxxx
import 'package:flutter/material.dart';
class CustomCircularProgressIndicator extends StatelessWidget {
final Color valueColor;
const CustomCircularProgressIndicator({Key key, this.valueColor}) : super(key: key);
@override
Widget build(BuildContext context) {
return CircularProgressIndicator(
valueColor: AlwaysStoppedAnimation<Color>(valueColor),
);
}
}