ImageTextWidget constructor
const
ImageTextWidget({
- Key? key,
- required String imageRes,
- required String text,
- ImageOrientation imageOrientation = ImageOrientation.left,
- double imageWidth = 20,
- double imageHeight = 20,
- TextStyle? textStyle,
- double imageTextPadding = 4,
- AlignmentGeometry? alignment = Alignment.center,
- EdgeInsetsGeometry? padding,
- Decoration? decoration,
- double? width,
- double? height,
- EdgeInsetsGeometry? margin,
- GestureTapCallback? onTap,
- GestureTapCallback? onDoubleTap,
- 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,
});