TButtonOutline constructor
const
TButtonOutline({
- Key? key,
- required String? text,
- 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,
- Widget? suffixIcon,
- Widget? prefixIcon,
- bool loading = false,
- Widget? child,
- Size minimumSize = const Size(double.infinity, 48),
- Size maximumSize = const Size(double.infinity, 48),
- double minFontSize = 12.0,
- bool centerContent = true,
Implementation
const TButtonOutline({
super.key,
required this.text,
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.suffixIcon,
this.prefixIcon,
this.loading = false,
this.child,
this.minimumSize = const Size(double.infinity, 48),
this.maximumSize = const Size(double.infinity, 48),
this.minFontSize = 12.0,
this.centerContent = true,
});