FlIconButton constructor

FlIconButton({
  1. required VoidCallback onPressed,
  2. required String text,
  3. Widget? icon,
  4. double height = 30,
  5. EdgeInsetsGeometry? padding,
  6. Color color = Colors.white,
  7. TextStyle? textStyle,
  8. double elevation = 0,
  9. 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,
});