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? titleText,
  18. bool addInkWell = false,
  19. TextStyle? titleStyle,
  20. GestureTapCallback? onTap,
  21. EdgeInsetsGeometry? padding,
  22. EdgeInsetsGeometry? margin,
  23. double? width,
  24. double? height,
  25. Decoration? decoration,
  26. AlignmentGeometry? alignment,
  27. ImageProvider<Object>? imageProvider,
  28. Image? image,
  29. Widget? title,
  30. bool visible = true,
  31. Widget? widget,
})

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.titleText,
  this.addInkWell = false,
  this.titleStyle,
  this.onTap,
  this.padding,
  this.margin,
  this.width,
  this.height,
  this.decoration,
  this.alignment,
  this.imageProvider,
  this.image,
  this.title,
  this.visible = true,
  this.widget,
});