SpinnerButton constructor
SpinnerButton({
- Key? key,
- required Widget child,
- required dynamic onPressed(
- AnimationController? controller
- Color color = Colors.blue,
- double strokeWidth = 2,
- double? elevation,
- double? borderWidth,
- Color borderColor = const Color(0xffff5745),
- Color progressIndicatorColor = Colors.white,
- double progressIndicatorSize = 30,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(0)),
- Duration animationDuration = const Duration(milliseconds: 300),
Implementation
SpinnerButton({
Key? key,
required this.child,
required this.onPressed,
this.color = Colors.blue,
this.strokeWidth = 2,
this.elevation,
this.borderWidth,
this.borderColor = const Color(0xffff5745),
this.progressIndicatorColor = Colors.white,
this.progressIndicatorSize = 30,
this.borderRadius = const BorderRadius.all(Radius.circular(0)),
this.animationDuration = const Duration(milliseconds: 300),
}) : super(key: key);