TButtonGhost.icon constructor
const
TButtonGhost.icon({
- Key? key,
- required Widget icon,
- required VoidCallback? onPressed,
- VoidCallback? onLongPress,
- Duration longPressDuration = const Duration(seconds: 1),
- TextStyle? textStyle,
- bool loading = false,
- Color? normalColor,
- Color? pressedColor,
- Color? loadingColor,
- bool centerContent = true,
- Size minimumSize = const Size(48, 48),
- Size maximumSize = const Size(48, 48),
- double minFontSize = 12.0,
- 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;