IconBox constructor
const
IconBox({
- Key? key,
- int maxLines = 1,
- TextOverflow overflow = TextOverflow.ellipsis,
- TextAlign textAlign = TextAlign.start,
- bool reversal = false,
- Axis direction = Axis.horizontal,
- double spacing = 4,
- CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- double? size,
- String? heroTag,
- IconData? icon,
- Color? background,
- Color? color,
- String? semanticLabel,
- TextDirection? textDirection,
- String? labelText,
- TextStyle? labelStyle,
- GestureTapCallback? onTap,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? margin,
- double? width,
- double? height,
- Decoration? decoration,
- AlignmentGeometry? alignment,
- ImageProvider<
Object> ? imageProvider, - Image? image,
- Widget? label,
- Widget? widget,
- VoidCallback? onPressed,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - ButtonStyle? style,
- FocusNode? focusNode,
- bool autofocus = false,
- WidgetStatesController? statesController,
- GestureLongPressCallback? onLongPress,
- Clip? clipBehavior,
- UnifiedButtonCategory? unifiedButtonCategory,
Implementation
const IconBox({
super.key,
this.maxLines = 1,
this.overflow = TextOverflow.ellipsis,
this.textAlign = TextAlign.start,
this.reversal = false,
this.direction = Axis.horizontal,
this.spacing = 4,
this.crossAxisAlignment = CrossAxisAlignment.center,
this.mainAxisAlignment = MainAxisAlignment.center,
this.size,
this.heroTag,
this.icon,
this.background,
this.color,
this.semanticLabel,
this.textDirection,
this.labelText,
this.labelStyle,
this.onTap,
this.padding,
this.margin,
this.width,
this.height,
this.decoration,
this.alignment,
this.imageProvider,
this.image,
this.label,
this.widget,
this.onPressed,
this.onHover,
this.onFocusChange,
this.style,
this.focusNode,
this.autofocus = false,
this.statesController,
this.onLongPress,
this.clipBehavior,
this.unifiedButtonCategory,
});