UCard constructor
const
UCard({
- required Widget child,
- Key? key,
- double elevation = 2.0,
- Color? color,
- BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12)),
- EdgeInsets margin = EdgeInsets.zero,
- EdgeInsetsGeometry? padding,
- Color? shadowColor,
- Color? surfaceTintColor,
- double? width,
- double? height,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- GestureTapCallback? onDoubleTap,
- ValueChanged<
bool> ? onHover, - Color? splashColor,
- Color? highlightColor,
- Color? hoverColor,
- BorderSide? border,
- String? semanticsLabel,
- VoidCallback? onPress,
- double? opacity,
- bool visible = true,
- String? tooltip,
- String? heroTag,
- MouseCursor? cursor,
- 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 UCard({
required this.child,
super.key,
this.elevation = 2.0,
this.color,
this.borderRadius = const BorderRadius.all(Radius.circular(12)),
this.margin = EdgeInsets.zero,
this.padding,
this.shadowColor,
this.surfaceTintColor,
this.width,
this.height,
this.onTap,
this.onLongPress,
this.onDoubleTap,
this.onHover,
this.splashColor,
this.highlightColor,
this.hoverColor,
this.border,
this.semanticsLabel,
this.onPress,
this.opacity,
this.visible = true,
this.tooltip,
this.heroTag,
this.cursor,
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,
});