AnimatedChatRecordButton constructor

const AnimatedChatRecordButton({
  1. Key? key,
  2. RecordButtonConfig config = const RecordButtonConfig(),
  3. TextEditingController? textEditingController,
  4. String? recordingOutputPath,
  5. required dynamic onRecordingEnd(
    1. File? filePath
    ),
  6. required dynamic onSend(
    1. String text
    ),
  7. RecordingContainerConfig? recordingContainerConfig,
  8. dynamic onStartRecording(
    1. bool doesStartRecording
    )?,
  9. dynamic onLockedRecording(
    1. bool doesStartRecording
    )?,
  10. double bottomPosition = 5,
  11. VoidCallback? onPressCamera,
  12. VoidCallback? onPressAttachment,
  13. VoidCallback? onPressEmoji,
  14. Color? textFormButtonsColor = const Color.fromARGB(255, 116, 116, 116),
  15. Color arrowColor = Colors.grey,
  16. Color lockColorFirst = Colors.grey,
  17. Color lockColorSecond = Colors.black,
})

Creates an instance of AnimatedChatRecordButton

Implementation

const AnimatedChatRecordButton(
    {super.key,
    this.config = const RecordButtonConfig(),
    this.textEditingController,
    this.recordingOutputPath,
    required this.onRecordingEnd,
    required this.onSend,
    this.recordingContainerConfig,
    this.onStartRecording,
    this.onLockedRecording,
    this.bottomPosition = 5,
    this.onPressCamera,
    this.onPressAttachment,
    this.onPressEmoji,
    this.textFormButtonsColor = const Color.fromARGB(255, 116, 116, 116),
    this.arrowColor = Colors.grey,
    this.lockColorFirst = Colors.grey,
    this.lockColorSecond = Colors.black});