UPressable constructor
const
UPressable({
- required Widget child,
- required VoidCallback onTap,
- Key? key,
- double pressedScale = 0.9,
- Duration duration = const Duration(milliseconds: 120),
- bool enabled = true,
- EdgeInsetsGeometry? margin,
- double? opacity,
- bool visible = true,
- String? tooltip,
- String? heroTag,
- BoxFit? fit,
- AlignmentGeometry fitAlignment = Alignment.center,
- double? scale,
- double? rotate,
- Offset? translate,
- bool center = false,
- bool safeArea = false,
- Axis? scrollable,
- ScrollController? scrollController,
- TextDirection? textDirection,
- int? expanded,
- int? flexible,
- bool positioned = false,
- double? left,
- double? top,
- double? right,
- double? bottom,
- double? positionedWidth,
- 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,
});