SpinnerButton constructor

SpinnerButton({
  1. Key? key,
  2. required Widget child,
  3. required dynamic onPressed(
    1. AnimationController? controller
    ),
  4. Color color = Colors.blue,
  5. double strokeWidth = 2,
  6. double? elevation,
  7. double? borderWidth,
  8. Color borderColor = const Color(0xffff5745),
  9. Color progressIndicatorColor = Colors.white,
  10. double progressIndicatorSize = 30,
  11. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(0)),
  12. 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);