EasyOutlinedButton constructor
const
EasyOutlinedButton({
- Key? key,
- required String label,
- VoidCallback? onPressed,
- HapticImpact hapticImpact = HapticImpact.none,
- bool enabled = true,
- Color? labelColor,
- TextStyle? labelStyle,
- double? height,
- double? width,
- Color? color,
- Color? disabledColor,
- Widget? icon,
- bool isTrailingIcon = false,
- double? borderRadius,
- bool isRounded = false,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- 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);