RecordButtonConfig constructor

const RecordButtonConfig({
  1. double? slideUpContainerHeight,
  2. Color? slideUpContainerColor,
  3. Color? firstRecordButtonColor,
  4. Color? secondRecordButtonColor,
  5. Color? textFormFieldBoxFillColor,
  6. String? textFormFieldHint,
  7. TextStyle? textFormFieldStyle,
  8. TextStyle? textFormFieldHintStyle,
  9. EdgeInsetsGeometry containersPadding = const EdgeInsets.only(left: 8),
  10. Icon firstRecordingButtonIcon = const Icon(Icons.mic, color: Colors.white),
  11. Icon secondRecordingButtonIcon = const Icon(Icons.send_rounded, color: Colors.white),
  12. double recordButtonSize = 40,
  13. double recordButtonScaleVal = 2.5,
  14. 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');