AnimatedButton constructor
const
AnimatedButton({
- Key? key,
- required GestureTapCallback onTap,
- required Widget child,
- bool? enabled = true,
- PredefinedThemes? type = PredefinedThemes.primary,
- Color? color = Colors.blue,
- double? height = 64,
- List<
Color> ? colors, - bool? isMultiColor = false,
- bool? darkShadow = true,
- double? width = 200,
- int? duration = 70,
- double? blurRadius = 0,
- double? borderRadius = 12,
- Curve? animationCurve = Curves.easeIn,
- double? shadowHeightBottom = 4,
- double? shadowHeightLeft = 0,
- bool? isOutline = false,
- Color? borderColor = Colors.black,
- double? borderWidth = 1,
- Color? blurColor = Colors.black,
- Color? shadowColor,
Implementation
const AnimatedButton({
Key? key,
required this.onTap,
required this.child,
this.enabled = true,
this.type = PredefinedThemes.primary,
this.color = Colors.blue,
this.height = 64,
this.colors,
this.isMultiColor = false,
this.darkShadow = true,
this.width = 200,
this.duration = 70,
this.blurRadius = 0,
this.borderRadius = 12,
this.animationCurve = Curves.easeIn,
this.shadowHeightBottom = 4,
this.shadowHeightLeft = 0,
this.isOutline = false,
this.borderColor = Colors.black,
this.borderWidth = 1,
this.blurColor = Colors.black,
this.shadowColor,
}) : super(key: key);