TButtonGhost.icon constructor

const TButtonGhost.icon({
  1. Key? key,
  2. required Widget icon,
  3. required VoidCallback? onPressed,
  4. VoidCallback? onLongPress,
  5. Duration longPressDuration = const Duration(seconds: 1),
  6. TextStyle? textStyle,
  7. bool loading = false,
  8. Color? normalColor,
  9. Color? pressedColor,
  10. Color? loadingColor,
  11. bool centerContent = true,
  12. Size minimumSize = const Size(48, 48),
  13. Size maximumSize = const Size(48, 48),
  14. double minFontSize = 12.0,
  15. EdgeInsetsGeometry? padding = const EdgeInsets.only(top: 10, bottom: 10, left: 12, right: 12),
})

Implementation

const TButtonGhost.icon({
  super.key,
  required Widget icon,
  required this.onPressed,
  this.onLongPress,
  this.longPressDuration = const Duration(seconds: 1),
  this.textStyle,
  this.loading = false,
  this.normalColor,
  this.pressedColor,
  this.loadingColor,
  this.centerContent = true,
  this.minimumSize = const Size(48, 48),
  this.maximumSize = const Size(48, 48),
  this.minFontSize = 12.0,
  this.padding =
      const EdgeInsets.only(top: 10, bottom: 10, left: 12, right: 12),
})  : child = icon,
      text = null,
      suffixIcon = null,
      prefixIcon = null;