UKeyValue constructor
const
UKeyValue({
- required Widget leading,
- required Widget trailing,
- Key? key,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.spaceBetween,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- Color? color,
- Gradient? gradient,
- BoxBorder? border,
- double? radius,
- List<
BoxShadow> ? boxShadow, - double? opacity,
- String? tooltip,
- String? semanticsLabel,
- bool splash = false,
- bool visible = true,
- VoidCallback? onPress,
- 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 UKeyValue({
required this.leading,
required this.trailing,
super.key,
this.mainAxisAlignment = MainAxisAlignment.spaceBetween,
this.crossAxisAlignment = CrossAxisAlignment.center,
this.onTap,
this.onLongPress,
this.onHover,
this.padding,
this.margin,
this.color,
this.gradient,
this.border,
this.radius,
this.boxShadow,
this.opacity,
this.tooltip,
this.semanticsLabel,
this.splash = false,
this.visible = true,
this.onPress,
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,
});