ChatBottomSheet constructor
const
ChatBottomSheet({
- Key? key,
- required VoidCallback onCameraTap,
- required VoidCallback onGalleryTap,
- String cameraText = 'From Camera',
- String galleryText = 'From Gallery',
- String cancelText = 'Cancel',
- Icon? cameraIcon,
- Icon? galleryIcon,
- Icon? cancelIcon,
- TextStyle? textStyle,
Creates a chat attachment bottom sheet.
onCameraTap
and onGalleryTap
must not be null.
cameraText
, galleryText
, and cancelText
default to
"From Camera", "From Gallery", and "Cancel" respectively.
Implementation
const ChatBottomSheet({
Key? key,
required this.onCameraTap,
required this.onGalleryTap,
this.cameraText = 'From Camera',
this.galleryText = 'From Gallery',
this.cancelText = 'Cancel',
this.cameraIcon,
this.galleryIcon,
this.cancelIcon,
this.textStyle,
}) : super(key: key);