UPressable constructor

const UPressable({
  1. required Widget child,
  2. required VoidCallback onTap,
  3. Key? key,
  4. double pressedScale = 0.9,
  5. Duration duration = const Duration(milliseconds: 120),
  6. bool enabled = true,
  7. EdgeInsetsGeometry? margin,
  8. double? opacity,
  9. bool visible = true,
  10. String? tooltip,
  11. String? heroTag,
  12. BoxFit? fit,
  13. AlignmentGeometry fitAlignment = Alignment.center,
  14. double? scale,
  15. double? rotate,
  16. Offset? translate,
  17. bool center = false,
  18. bool safeArea = false,
  19. Axis? scrollable,
  20. ScrollController? scrollController,
  21. TextDirection? textDirection,
  22. int? expanded,
  23. int? flexible,
  24. bool positioned = false,
  25. double? left,
  26. double? top,
  27. double? right,
  28. double? bottom,
  29. double? positionedWidth,
  30. double? positionedHeight,
})

Implementation

const UPressable({
  required this.child,
  required this.onTap,
  super.key,
  this.pressedScale = 0.9,
  this.duration = const Duration(milliseconds: 120),
  this.enabled = true,
  this.margin,
  this.opacity,
  this.visible = true,
  this.tooltip,
  this.heroTag,
  this.fit,
  this.fitAlignment = Alignment.center,
  this.scale,
  this.rotate,
  this.translate,
  this.center = false,
  this.safeArea = false,
  this.scrollable,
  this.scrollController,
  this.textDirection,
  this.expanded,
  this.flexible,
  this.positioned = false,
  this.left,
  this.top,
  this.right,
  this.bottom,
  this.positionedWidth,
  this.positionedHeight,
});