OwlnextButton constructor

const OwlnextButton({
  1. Key? key,
  2. required Function callback,
  3. ButtonType type = ButtonType.classic,
  4. bool isAsync = false,
  5. bool enabled = true,
  6. CustomButtonType? customType,
  7. required Widget child,
  8. bool isExpanded = false,
  9. @Deprecated("instead, use minWidth parameter") double? customWidth,
  10. double? minWidth,
  11. double? minHeight,
  12. Color? leftDotColorOverride,
  13. Color? rightDotColorOverride,
  14. double? loaderSize,
  15. bool? isOutlined = false,
  16. EdgeInsets? padding,
})

Owlnext Button Based on Material design and uses ElevatedButton

Can be used with ButtonType type, to determine default behavior Can be overrided with the props customType, with a custom CustomButtonType to have specific theme

Implementation

const OwlnextButton({
  super.key,
  required this.callback,
  this.type = ButtonType.classic,
  this.isAsync = false,
  this.enabled = true,
  this.customType,
  required this.child,
  this.isExpanded = false,
  @Deprecated("instead, use minWidth parameter")
  this.customWidth,
  this.minWidth,
  this.minHeight,
  this.leftDotColorOverride,
  this.rightDotColorOverride,
  this.loaderSize,
  this.isOutlined = false,
  this.padding,
});