FlIconButton constructor
FlIconButton({
- required VoidCallback onPressed,
- required String text,
- Widget? icon,
- double height = 30,
- EdgeInsetsGeometry? padding,
- Color color = Colors.white,
- TextStyle? textStyle,
- double elevation = 0,
- double radius = 9.0,
Creates a customizable button.
The onPressed, text, icon, height, padding, color,
textStyle, elevation, and radius parameters are required.
The radius parameter is optional and defaults to 9.0.
Implementation
FlIconButton({
required this.onPressed,
required this.text,
this.icon,
this.height = 30,
this.padding,
this.color = Colors.white,
this.textStyle,
this.elevation = 0,
this.radius = 9.0,
});