TextAreaWithSubmit constructor
TextAreaWithSubmit({
- Key? key,
- String hintText = 'Enter text',
- TextStyle hintTextStyle = const TextStyle(fontSize: 16.0),
- String buttonText = 'Submit',
- Color buttonColor = Colors.black,
- double buttonElevation = 4.0,
- InputDecoration? inputDecoration,
- double distanceBetweenInputAndButton = 20.0,
- EdgeInsets paddingBetweenButtonAndTextField = const EdgeInsets.symmetric(horizontal: 20.0, vertical: 10.0),
- double buttonBorderRadius = 8.0,
- double? buttonHeight,
- double? buttonWidth,
- double borderRadius = 8.0,
- Color? boderColor,
- double? borderWidth,
- TextStyle buttonTextStyle = const TextStyle(fontSize: 16.0, color: Colors.white),
- MainAxisAlignment? mainAxisAlignment,
- Axis? direction,
- int? minLines,
- int? maxLines,
- TextInputType? keyboardType,
- List<
TextInputFormatter> ? inputFormatter, - dynamic controller,
- required dynamic onPressed(
- String b
- 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;
}