GRawButton constructor

const GRawButton({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. required Widget child,
  4. Widget? icon,
  5. IconPosition iconPosition = IconPosition.left,
  6. double iconSpace = 4.0,
  7. double? width,
  8. double height = 32,
  9. EdgeInsets padding = const EdgeInsets.symmetric(horizontal: 12),
  10. EdgeInsets margin = EdgeInsets.zero,
  11. ShapeBorder shape = const RoundedRectangleBorder(),
  12. BorderRadius? borderRadius,
  13. Color? color,
  14. Clip clip = Clip.hardEdge,
  15. double elevation = 0.0,
  16. List<BoxShadow>? shadow,
  17. FocusNode? focusNode,
})

Implementation

const GRawButton({
  Key? key,
  required this.onPressed,
  required this.child,
  this.icon,
  this.iconPosition = IconPosition.left,
  this.iconSpace = 4.0,
  this.width,
  this.height = 32,
  this.padding = const EdgeInsets.symmetric(horizontal: 12),
  this.margin = EdgeInsets.zero,
  this.shape = const RoundedRectangleBorder(),
  this.borderRadius,
  this.color,
  this.clip = Clip.hardEdge,
  this.elevation = 0.0,
  this.shadow,
  this.focusNode,
}) : super(key: key);