RoundedButtonWithIcons constructor

const RoundedButtonWithIcons(
  1. IconData icon, {
  2. Key? key,
  3. required String text,
  4. required Function onPressed,
  5. double? width,
  6. double? height,
  7. Color? color,
  8. Color? textColor,
  9. double iconSize = 24,
  10. Color? iconColor,
  11. ValueNotifier<BoxShadow>? shadow,
  12. double margin = 0.0,
  13. double radius = 24,
  14. bool isDisabled = false,
})

Creates a RoundedButtonWithIcons widget.

The icon parameter must not be null.

Implementation

const RoundedButtonWithIcons(
  this.icon, {
  super.key,
  required super.text,
  required super.onPressed,
  super.width,
  super.height,
  super.color,
  super.textColor,
  this.iconSize = 24,
  this.iconColor,
  super.shadow,
  super.margin,
  super.radius,
  super.isDisabled = false,
}) : super(iconSize: iconSize, iconColor: iconColor);