ExpressiveButton constructor
const
ExpressiveButton({
- Key? key,
- required ExpressiveShapeGeometry geometry,
- required VoidCallback? onPressed,
- required Widget child,
- ExpressiveButtonVariant variant = ExpressiveButtonVariant.elevated,
- double progress = 1,
- bool stretch = false,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8),
- double clearance = 5,
- ExpressiveContentOverflow overflow = ExpressiveContentOverflow.scaleDown,
- ButtonStyle? style,
- BoxConstraints constraints = const BoxConstraints(minWidth: 48, minHeight: 48),
- WidgetStatesController? statesController,
- FocusNode? focusNode,
- 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,
});