UCard constructor

const UCard({
  1. required Widget child,
  2. Key? key,
  3. double elevation = 2.0,
  4. Color? color,
  5. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12)),
  6. EdgeInsets margin = EdgeInsets.zero,
  7. EdgeInsetsGeometry? padding,
  8. Color? shadowColor,
  9. Color? surfaceTintColor,
  10. double? width,
  11. double? height,
  12. GestureTapCallback? onTap,
  13. GestureLongPressCallback? onLongPress,
  14. GestureTapCallback? onDoubleTap,
  15. ValueChanged<bool>? onHover,
  16. Color? splashColor,
  17. Color? highlightColor,
  18. Color? hoverColor,
  19. BorderSide? border,
  20. String? semanticsLabel,
  21. VoidCallback? onPress,
  22. double? opacity,
  23. bool visible = true,
  24. String? tooltip,
  25. String? heroTag,
  26. MouseCursor? cursor,
  27. BoxFit? fit,
  28. AlignmentGeometry fitAlignment = Alignment.center,
  29. double? scale,
  30. double? rotate,
  31. Offset? translate,
  32. bool center = false,
  33. bool safeArea = false,
  34. Axis? scrollable,
  35. ScrollController? scrollController,
  36. TextDirection? textDirection,
  37. int? expanded,
  38. int? flexible,
  39. bool positioned = false,
  40. double? left,
  41. double? top,
  42. double? right,
  43. double? bottom,
  44. double? positionedWidth,
  45. 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,
});