ImageTextWidget constructor

const ImageTextWidget({
  1. Key? key,
  2. required String imageRes,
  3. required String text,
  4. ImageOrientation imageOrientation = ImageOrientation.left,
  5. double imageWidth = 20,
  6. double imageHeight = 20,
  7. TextStyle? textStyle,
  8. double imageTextPadding = 4,
  9. AlignmentGeometry? alignment = Alignment.center,
  10. EdgeInsetsGeometry? padding,
  11. Decoration? decoration,
  12. double? width,
  13. double? height,
  14. EdgeInsetsGeometry? margin,
  15. GestureTapCallback? onTap,
  16. GestureTapCallback? onDoubleTap,
  17. GestureLongPressCallback? onLongTap,
})

Implementation

const ImageTextWidget({
  super.key,
  required this.imageRes,
  required this.text,
  this.imageOrientation = ImageOrientation.left,
  this.imageWidth = 20,
  this.imageHeight = 20,
  this.textStyle,
  this.imageTextPadding = 4,
  this.alignment = Alignment.center,
  this.padding,
  this.decoration,
  this.width,
  this.height,
  this.margin,
  this.onTap,
  this.onDoubleTap,
  this.onLongTap,
});