TButtonDisable.icon constructor
const
TButtonDisable.icon({
- Key? key,
- required Widget icon,
- required VoidCallback? onPressed,
- VoidCallback? onLongPress,
- Duration? longPressDuration,
- Color? backgroundColor,
- Color? onPressedBackgroundColor,
- Color? loadingColor,
- double borderRadius = 8,
- TextStyle? textStyle,
- bool loading = false,
- 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 TButtonDisable.icon({
super.key,
required Widget icon,
required this.onPressed,
this.onLongPress,
this.longPressDuration,
this.backgroundColor,
this.onPressedBackgroundColor,
this.loadingColor,
this.borderRadius = 8,
this.textStyle,
this.loading = false,
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;