TenButton constructor

const TenButton({
  1. required Widget child,
  2. GestureTapCallback? onTap,
  3. GestureLongPressCallback? onLongPress,
  4. Color? backgorundColor,
  5. bool isBorder = false,
  6. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
  7. double borderRadius = 32,
  8. double opacity = 0.85,
  9. Key? key,
})

Implementation

const TenButton(
    {required this.child,
    this.onTap,
    this.onLongPress,
    this.backgorundColor,
    this.isBorder = false,
    this.padding = const EdgeInsets.symmetric(horizontal: 24, vertical: 12),
    this.borderRadius = 32,
    this.opacity = 0.85,
    super.key});