ChatBottomSheet constructor

const ChatBottomSheet({
  1. Key? key,
  2. required VoidCallback onCameraTap,
  3. required VoidCallback onGalleryTap,
  4. String cameraText = 'From Camera',
  5. String galleryText = 'From Gallery',
  6. String cancelText = 'Cancel',
  7. Icon? cameraIcon,
  8. Icon? galleryIcon,
  9. Icon? cancelIcon,
  10. 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);