AnimatedButton constructor

const AnimatedButton({
  1. Key? key,
  2. required ButtonStatus buttonBuilder(
    1. String? type
    ),
  3. double? width,
  4. double? height,
  5. BorderRadius? borderRadius,
  6. BorderSide? borderSide,
  7. String? initialState,
  8. ButtonProgress progressBuilder(
    1. ButtonStatus button,
    2. ButtonProgress progress
    )?,
  9. Duration? statusChangeDuration = const Duration(milliseconds: 500),
  10. Duration? loadingDuration = const Duration(milliseconds: 1000),
  11. Curve statusCurve = Curves.linear,
  12. Curve loadingCurve = Curves.linear,
  13. AnimatedButtonTap? onTap,
  14. ButtonStateNotifier? stateNotifier,
  15. ButtonProgressNotifier? buttonProgressNotifier,
})

Implementation

const AnimatedButton(
    {Key? key,
    required this.buttonBuilder,
    this.width,
    this.height,
    this.borderRadius,
    this.borderSide,
    this.initialState,
    this.progressBuilder,
    this.statusChangeDuration = const Duration(milliseconds: 500),
    this.loadingDuration = const Duration(milliseconds: 1000),
    this.statusCurve = Curves.linear,
    this.loadingCurve = Curves.linear,
    this.onTap,
    this.stateNotifier,
    this.buttonProgressNotifier})
    : super(key: key);