ExpressiveButton constructor

const ExpressiveButton({
  1. Key? key,
  2. required ExpressiveShapeGeometry geometry,
  3. required VoidCallback? onPressed,
  4. required Widget child,
  5. ExpressiveButtonVariant variant = ExpressiveButtonVariant.elevated,
  6. double progress = 1,
  7. bool stretch = false,
  8. EdgeInsetsGeometry padding = const EdgeInsets.all(8),
  9. double clearance = 5,
  10. ExpressiveContentOverflow overflow = ExpressiveContentOverflow.scaleDown,
  11. ButtonStyle? style,
  12. BoxConstraints constraints = const BoxConstraints(minWidth: 48, minHeight: 48),
  13. WidgetStatesController? statesController,
  14. FocusNode? focusNode,
  15. bool autofocus = false,
})

Implementation

const ExpressiveButton({
  super.key,
  required this.geometry,
  required this.onPressed,
  required this.child,
  this.variant = ExpressiveButtonVariant.elevated,
  this.progress = 1,
  this.stretch = false,
  this.padding = const EdgeInsets.all(8),
  this.clearance = 5,
  this.overflow = ExpressiveContentOverflow.scaleDown,
  this.style,
  this.constraints = const BoxConstraints(minWidth: 48, minHeight: 48),
  this.statesController,
  this.focusNode,
  this.autofocus = false,
});