VButton constructor

const VButton({
  1. Key? key,
  2. void onPress()?,
  3. VButtonVariant? variant,
  4. VButtonSize size = VButtonSize.md,
  5. bool autofocus = false,
  6. FocusNode? focusNode,
  7. bool disabled = false,
  8. bool selected = false,
  9. bool fullwidth = false,
  10. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  11. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  12. Widget? prefix,
  13. Widget? suffix,
  14. Widget? child,
  15. String? tooltip,
})

Implementation

const VButton({
  super.key,
  this.onPress,
  this.variant,
  this.size = VButtonSize.md,
  this.autofocus = false,
  this.focusNode,
  this.disabled = false,
  this.selected = false,
  this.fullwidth = false,
  this.mainAxisAlignment = MainAxisAlignment.center,
  this.crossAxisAlignment = CrossAxisAlignment.center,
  this.prefix,
  this.suffix,
  this.child,
  this.tooltip,
});