PressSurface constructor

const PressSurface({
  1. Key? key,
  2. required Color fill,
  3. required OutlinedBorder shape,
  4. PressLook look = PressLook.ink,
  5. BorderSide side = BorderSide.none,
  6. Color? ringColor,
  7. bool ringStandsOff = false,
  8. Color? foreground,
  9. Color? inkColor,
  10. double? iconSize,
  11. TextStyle? textStyle,
  12. EdgeInsets padding = EdgeInsets.zero,
  13. BoxConstraints minimum = const BoxConstraints(),
  14. Size tapTarget = Size.zero,
  15. VoidCallback? onPressed,
  16. bool inert = false,
  17. bool selected = false,
  18. WidgetStatesController? statesController,
  19. bool reportsHover = false,
  20. bool showsHover = true,
  21. FocusOnKeyEventCallback? onKeyEvent,
  22. bool childFills = false,
  23. bool clipsChild = false,
  24. 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,
});