AnimatedButton constructor
const
AnimatedButton({
- Key? key,
- required ButtonStatus buttonBuilder(
- String? type
- double? width,
- double? height,
- BorderRadius? borderRadius,
- BorderSide? borderSide,
- String? initialState,
- ButtonProgress progressBuilder(
- ButtonStatus button,
- ButtonProgress progress
- Duration? statusChangeDuration = const Duration(milliseconds: 500),
- Duration? loadingDuration = const Duration(milliseconds: 1000),
- Curve statusCurve = Curves.linear,
- Curve loadingCurve = Curves.linear,
- AnimatedButtonTap? onTap,
- ButtonStateNotifier? stateNotifier,
- 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);