PulsatingButton constructor
const
PulsatingButton({
- Key? key,
- VoidCallback? onClick,
- @Deprecated('Usa onClick en su lugar') VoidCallback? onPressed,
- Color color = Colors.blue,
- Duration pulsationDuration = const Duration(milliseconds: 800),
- double width = 120.0,
- double height = 60.0,
- BoxBorder? border,
- BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(12.0)),
- Widget? child,
- Curve curve = Curves.easeInOut,
- double pulsationSize = 12.0,
Crea un botón con efecto de pulsación continua.
El ciclo se ejecuta indefinidamente hasta que el widget se descarte.
Implementation
const PulsatingButton({
super.key,
this.onClick,
@Deprecated('Usa onClick en su lugar') this.onPressed,
this.color = Colors.blue,
this.pulsationDuration = const Duration(milliseconds: 800),
this.width = 120.0,
this.height = 60.0,
this.border,
this.borderRadius = const BorderRadius.all(Radius.circular(12.0)),
this.child,
this.curve = Curves.easeInOut,
this.pulsationSize = 12.0,
}) : assert(width > 0, 'width debe ser > 0'),
assert(height > 0, 'height debe ser > 0'),
assert(pulsationSize >= 0, 'pulsationSize debe ser >= 0');