ToggleSlideAnimationComponent constructor
const
ToggleSlideAnimationComponent({
- required void onPressed(),
- double height = 40,
- double width = 300,
- double iconSize = 24,
- Widget content = const Text('Adiciona a sacola', style: TextStyle(color: Colors.white, fontSize: 16)),
- IconData icon = Icons.shopping_cart_outlined,
- IconData completedIcon = Icons.check,
- Color color = Colors.blue,
- double borderRadius = 30,
- Key? key,
Implementation
const ToggleSlideAnimationComponent(
{required this.onPressed,
this.height = 40,
this.width = 300,
this.iconSize = 24,
this.content = const Text(
'Adiciona a sacola',
style: TextStyle(color: Colors.white, fontSize: 16),
),
this.icon = Icons.shopping_cart_outlined,
this.completedIcon = Icons.check,
this.color = Colors.blue,
this.borderRadius = 30,
Key? key})
: super(key: key);