RecordButtonConfig constructor
const
RecordButtonConfig({
- double? slideUpContainerHeight,
- Color? slideUpContainerColor,
- Color? firstRecordButtonColor,
- Color? secondRecordButtonColor,
- Color? textFormFieldBoxFillColor,
- String? textFormFieldHint,
- TextStyle? textFormFieldStyle,
- TextStyle? textFormFieldHintStyle,
- EdgeInsetsGeometry containersPadding = const EdgeInsets.only(left: 8),
- Icon firstRecordingButtonIcon = const Icon(Icons.mic, color: Colors.white),
- Icon secondRecordingButtonIcon = const Icon(Icons.send_rounded, color: Colors.white),
- double recordButtonSize = 40,
- double recordButtonScaleVal = 2.5,
- double slideUpContainerWidth = 50,
Implementation
const RecordButtonConfig({
this.slideUpContainerHeight,
this.slideUpContainerColor,
this.firstRecordButtonColor,
this.secondRecordButtonColor,
this.textFormFieldBoxFillColor,
this.textFormFieldHint,
this.textFormFieldStyle,
this.textFormFieldHintStyle,
this.containersPadding = const EdgeInsets.only(left: 8),
this.firstRecordingButtonIcon = const Icon(
Icons.mic,
color: Colors.white,
),
this.secondRecordingButtonIcon = const Icon(
Icons.send_rounded,
color: Colors.white,
),
this.recordButtonSize = 40,
this.recordButtonScaleVal = 2.5,
this.slideUpContainerWidth = 50,
}) : assert(recordButtonScaleVal >= 1.5 && recordButtonScaleVal <= 2.5,
'recordButtonScaleVal must be between 1.5 and 2.5 for better experience');