TenButton.success constructor

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

Implementation

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