CometChatMediaRecorder(
startIcon: Icon(Icons.mic),
playIcon: Icon(Icons.play_arrow),
pauseIcon: Icon(Icons.pause),
closeIcon: Icon(Icons.close),
stopIcon: Icon(Icons.stop),
submitIcon: Icon(Icons.send),
onSubmit: (BuildContext, String path) {
// TODO("Not yet implemented")
},
onClose: () {
// TODO("Not yet implemented")
},
mediaRecorderStyle: MediaRecorderStyle(
pauseIconTint: Colors.red,
playIconTint: Colors.green,
closeIconTint: Colors.red,
timerTextStyle: TextStyle(color: Colors.white),
submitIconTint: Colors.green,
startIconTint: Colors.green,
stopIconTint: Colors.red,
audioBarTint: Colors.green,
),
);
// open the CometChatMediaRecorder widget in a modal sheet
showModalBottomSheet<void>(
isDismissible: true,
context: context,
backgroundColor: Colors.transparent,
builder: (BuildContext context) {
return CometChatMediaRecorder(onSubmit: (context,path) {
// TODO("Not yet implemented")
});
};
);