TextAreaWithSubmit constructor

TextAreaWithSubmit({
  1. Key? key,
  2. String hintText = 'Enter text',
  3. TextStyle hintTextStyle = const TextStyle(fontSize: 16.0),
  4. String buttonText = 'Submit',
  5. Color buttonColor = Colors.black,
  6. double buttonElevation = 4.0,
  7. InputDecoration? inputDecoration,
  8. double distanceBetweenInputAndButton = 20.0,
  9. EdgeInsets paddingBetweenButtonAndTextField = const EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0),
  10. double buttonBorderRadius = 8.0,
  11. double? buttonHeight,
  12. double? buttonWidth,
  13. double borderRadius = 8.0,
  14. Color? boderColor,
  15. double? borderWidth,
  16. TextStyle buttonTextStyle = const TextStyle(fontSize: 16.0, color: Colors.white),
  17. MainAxisAlignment? mainAxisAlignment,
  18. Axis? direction,
  19. int? minLines,
  20. int? maxLines,
  21. TextInputType? keyboardType,
  22. List<TextInputFormatter>? inputFormatter,
  23. dynamic controller,
  24. required dynamic onPressed(
    1. String b
    ),
  25. required EdgeInsets padding,
})

Implementation

TextAreaWithSubmit({
  Key? key,
  this.hintText = 'Enter text',
  this.hintTextStyle = const TextStyle(fontSize: 16.0),
  this.buttonText = 'Submit',
  this.buttonColor = Colors.black,
  this.buttonElevation = 4.0,
  this.inputDecoration,
  this.distanceBetweenInputAndButton = 20.0,
  this.paddingBetweenButtonAndTextField =
      const EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0),
  this.buttonBorderRadius = 8.0,
  this.buttonHeight,
  this.buttonWidth,
  this.borderRadius = 8.0,
  this.boderColor,
  this.borderWidth,
  this.buttonTextStyle = const TextStyle(fontSize: 16.0, color: Colors.white),
  this.mainAxisAlignment,
  this.direction,
  this.minLines,
  this.maxLines,
  this.keyboardType,
  this.inputFormatter,
  controller,
  required this.onPressed,
  required this.padding,
}) : super(key: key) {
  this.controller = controller ?? this.controller;
}