ToggleSlideAnimationComponent constructor

const ToggleSlideAnimationComponent({
  1. required void onPressed(),
  2. double height = 40,
  3. double width = 300,
  4. double iconSize = 24,
  5. Widget content = const Text('Adiciona a sacola', style: TextStyle(color: Colors.white, fontSize: 16)),
  6. IconData icon = Icons.shopping_cart_outlined,
  7. IconData completedIcon = Icons.check,
  8. Color color = Colors.blue,
  9. double borderRadius = 30,
  10. 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);