EasyElevatedButton constructor
const
EasyElevatedButton({
- Key? key,
- required String label,
- required VoidCallback onPressed,
- bool enabled = true,
- Color? labelColor,
- TextStyle? labelStyle,
- double? height,
- double? width,
- Color? color,
- Widget? icon,
- bool isTrailingIcon = false,
- double? borderRadius,
- bool isRounded = false,
- EdgeInsetsGeometry? margin,
- double? elevation,
- bool haptics = false,
EasyElevatedButton is a ElevatedButton with simple parameters which makes it easy to style this button.
Similar to a ElevatedButton.icon button, adding an icon is also possible in this button with some extra configurations.
EasyElevatedButton(
label: 'Hello World!',
onPressed: () {},
)
Implementation
const EasyElevatedButton({
Key? key,
required this.label,
required this.onPressed,
this.enabled = true,
this.labelColor,
this.labelStyle,
this.height,
this.width,
this.color,
this.icon,
this.isTrailingIcon = false,
this.borderRadius,
this.isRounded = false,
this.margin,
this.elevation,
this.haptics = false,
}) : super(key: key);