TButtonOutline.icon constructor
const
TButtonOutline.icon({
- Key? key,
- required Widget icon,
- required VoidCallback? onPressed,
- VoidCallback? onLongPress,
- Duration longPressDuration = const Duration(seconds: 1),
- Color backgroundColor = Colors.transparent,
- double borderRadius = 8,
- Color? borderColor,
- Color? loadingColor,
- EdgeInsetsGeometry? padding = const EdgeInsets.only(top: 10, bottom: 10, left: 12, right: 12),
- TextStyle? textStyle,
- bool loading = false,
- Size minimumSize = const Size(48, 48),
- Size maximumSize = const Size(48, 48),
- double minFontSize = 12.0,
- 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;