EasyOutlinedButton constructor

const EasyOutlinedButton({
  1. Key? key,
  2. required String label,
  3. VoidCallback? onPressed,
  4. HapticImpact hapticImpact = HapticImpact.none,
  5. bool enabled = true,
  6. Color? labelColor,
  7. TextStyle? labelStyle,
  8. double? height,
  9. double? width,
  10. Color? color,
  11. Color? disabledColor,
  12. Widget? icon,
  13. bool isTrailingIcon = false,
  14. double? borderRadius,
  15. bool isRounded = false,
  16. EdgeInsetsGeometry? margin,
  17. EdgeInsetsGeometry? padding,
  18. double? spaceBetweenChildren,
})

EasyOutlinedButton is a OutlinedButton with simple parameters which makes it easy to style this button.

Similar to a OutlinedButton.icon button, adding an icon is also possible in this button with some extra configurations.

EasyOutlinedButton(
 label: 'Hello World!',
),

Implementation

const EasyOutlinedButton({
  Key? key,
  required this.label,
  this.onPressed,
  this.hapticImpact = HapticImpact.none,
  this.enabled = true,
  this.labelColor,
  this.labelStyle,
  this.height,
  this.width,
  this.color,
  this.disabledColor,
  this.icon,
  this.isTrailingIcon = false,
  this.borderRadius,
  this.isRounded = false,
  this.margin,
  this.padding,
  this.spaceBetweenChildren,
}) : super(key: key);