TButtonGhost constructor

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

Implementation

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