TButtonOutline.icon constructor

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

Implementation

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