VButton constructor

const VButton({
  1. required void onTap()?,
  2. void onDoubleTap()?,
  3. void onLongPress()?,
  4. String? label,
  5. Widget? iconPreffix,
  6. Widget? iconSuffix,
  7. VButtonShape shape,
  8. VButtonColor color,
  9. VButtonSize size,
  10. VButtonState state,
  11. VButtonLayout layout,
  12. VButtonType type,
  13. VButtonLoadingType loadingType,
  14. TextStyle? textStyle,
})

V Button This file defines the VButton widget which is a customizable button component with various styles, shapes, sizes, and states.

Example usage:

VButton(
  onTap: () {
    print("Button Tapped!");
  },
  label: "Primary Button",
  type: VButtonType.PRIMARY,
  size: VButtonSize.MEDIUM,
  shape: VButtonShape.ROUNDED,
  state: VButtonState.SUCCESS,
  loadingType: VButtonLoadingType.CIRCULAR,
)

Implementation

const factory VButton({
  required void Function()? onTap,
  void Function()? onDoubleTap,
  void Function()? onLongPress,
  String? label,
  Widget? iconPreffix,
  Widget? iconSuffix,
  VButtonShape shape,
  VButtonColor color,
  VButtonSize size,
  VButtonState state,
  VButtonLayout layout,
  VButtonType type,
  VButtonLoadingType loadingType,
  TextStyle? textStyle,
}) = _DefaultVButton;