IconBox constructor

const IconBox({
  1. Key? key,
  2. int maxLines = 1,
  3. TextOverflow overflow = TextOverflow.ellipsis,
  4. TextAlign textAlign = TextAlign.start,
  5. bool reversal = false,
  6. Axis direction = Axis.horizontal,
  7. double spacing = 4,
  8. CrossAxisAlignment crossAxisAlignment = CrossAxisAlignment.center,
  9. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  10. double? size,
  11. String? heroTag,
  12. IconData? icon,
  13. Color? background,
  14. Color? color,
  15. String? semanticLabel,
  16. TextDirection? textDirection,
  17. String? labelText,
  18. TextStyle? labelStyle,
  19. GestureTapCallback? onTap,
  20. EdgeInsetsGeometry? padding,
  21. EdgeInsetsGeometry? margin,
  22. double? width,
  23. double? height,
  24. Decoration? decoration,
  25. AlignmentGeometry? alignment,
  26. ImageProvider<Object>? imageProvider,
  27. Image? image,
  28. Widget? label,
  29. Widget? widget,
  30. VoidCallback? onPressed,
  31. ValueChanged<bool>? onHover,
  32. ValueChanged<bool>? onFocusChange,
  33. ButtonStyle? style,
  34. FocusNode? focusNode,
  35. bool autofocus = false,
  36. MaterialStatesController? statesController,
  37. GestureLongPressCallback? onLongPress,
  38. Clip? clipBehavior,
  39. 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,
});