PressSurface constructor
const
PressSurface({
- Key? key,
- required Color fill,
- required OutlinedBorder shape,
- PressLook look = PressLook.ink,
- BorderSide side = BorderSide.none,
- Color? ringColor,
- bool ringStandsOff = false,
- Color? foreground,
- Color? inkColor,
- double? iconSize,
- TextStyle? textStyle,
- EdgeInsets padding = EdgeInsets.zero,
- BoxConstraints minimum = const BoxConstraints(),
- Size tapTarget = Size.zero,
- VoidCallback? onPressed,
- bool inert = false,
- bool selected = false,
- WidgetStatesController? statesController,
- bool reportsHover = false,
- bool showsHover = true,
- FocusOnKeyEventCallback? onKeyEvent,
- bool childFills = false,
- bool clipsChild = false,
- required Widget child,
Implementation
const PressSurface({
super.key,
required this.fill,
required this.shape,
this.look = PressLook.ink,
this.side = BorderSide.none,
this.ringColor,
this.ringStandsOff = false,
this.foreground,
this.inkColor,
this.iconSize,
this.textStyle,
this.padding = EdgeInsets.zero,
this.minimum = const BoxConstraints(),
this.tapTarget = Size.zero,
this.onPressed,
this.inert = false,
this.selected = false,
this.statesController,
this.reportsHover = false,
this.showsHover = true,
this.onKeyEvent,
this.childFills = false,
this.clipsChild = false,
required this.child,
});