PrettySlideIconButton constructor

const PrettySlideIconButton({
  1. Key? key,
  2. required Color foregroundColor,
  3. required IconData icon,
  4. required String label,
  5. required TextStyle labelStyle,
  6. SlidePosition slidePosition = SlidePosition.left,
  7. Duration duration = duration500,
  8. Curve curve = Curves.easeInOut,
  9. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: s24, vertical: s12),
  10. double borderWidth = s1,
  11. required VoidCallback onPressed,
})

Implementation

const PrettySlideIconButton({
  super.key,
  required this.foregroundColor,
  required this.icon,
  required this.label,
  required this.labelStyle,
  this.slidePosition = SlidePosition.left,
  this.duration = duration500,
  this.curve = Curves.easeInOut,
  this.padding = const EdgeInsets.symmetric(
    horizontal: s24,
    vertical: s12,
  ),
  this.borderWidth = s1,
  required this.onPressed,
});