TButtonSecondary constructor

const TButtonSecondary({
  1. Key? key,
  2. required String? text,
  3. required VoidCallback? onPressed,
  4. VoidCallback? onLongPress,
  5. Duration longPressDuration = const Duration(seconds: 1),
  6. Color? backgroundColor,
  7. Color? onPressedBackgroundColor,
  8. Color? loadingColor,
  9. double borderRadius = 8,
  10. EdgeInsetsGeometry? padding = const EdgeInsets.only(top: 10, bottom: 10, left: 12, right: 12),
  11. TextStyle? textStyle,
  12. Widget? suffixIcon,
  13. Widget? prefixIcon,
  14. bool loading = false,
  15. Widget? child,
  16. Size minimumSize = const Size(double.infinity, 48),
  17. Size maximumSize = const Size(double.infinity, 48),
  18. double minFontSize = 12.0,
  19. bool centerContent = true,
})

Implementation

const TButtonSecondary({
  super.key,
  required this.text,
  required this.onPressed,
  this.onLongPress,
  this.longPressDuration = const Duration(seconds: 1),
  this.backgroundColor,
  this.onPressedBackgroundColor,
  this.loadingColor,
  this.borderRadius = 8,
  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,
});