TButtonPrimary constructor
const
TButtonPrimary({
- Key? key,
- required String? text,
- required VoidCallback? onPressed,
- VoidCallback? onLongPress,
- Duration? longPressDuration,
- Color? backgroundColor,
- Color? onPressedBackgroundColor,
- Color? loadingColor,
- double borderRadius = 8,
- TextStyle? textStyle,
- Widget? suffixIcon,
- Widget? prefixIcon,
- bool loading = false,
- Widget? child,
- EdgeInsetsGeometry? padding = const EdgeInsets.only(top: 10, bottom: 10, left: 12, right: 12),
- bool centerContent = true,
- Size minimumSize = const Size(double.infinity, 48),
- Size maximumSize = const Size(double.infinity, 48),
- double minFontSize = 12.0,
Implementation
const TButtonPrimary({
super.key,
required this.text,
required this.onPressed,
this.onLongPress,
this.longPressDuration,
this.backgroundColor,
this.onPressedBackgroundColor,
this.loadingColor,
this.borderRadius = 8,
this.textStyle,
this.suffixIcon,
this.prefixIcon,
this.loading = false,
this.child,
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,
});