TextAreaWithSubmit class

A widget representing an input field with a submit button.

Inheritance

Constructors

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})

Properties

boderColor ↔ Color?
The color of the border.
getter/setter pair
borderRadius → double
The border radius of the input field.
final
borderWidth ↔ double?
The width of the border.
getter/setter pair
buttonBorderRadius → double
The border radius of the submit button.
final
buttonColor → Color
The color of the submit button.
final
buttonElevation → double
The elevation of the submit button.
final
buttonHeight → double?
The height of the submit button.
final
buttonText → String
The text displayed on the submit button.
final
buttonTextStyle → TextStyle
The text style of the submit button.
final
buttonWidth → double?
The width of the submit button.
final
controller ↔ TextEditingController
The controller for the input field.
getter/setter pair
direction → Axis?
The direction of the widget (vertical or horizontal).
final
distanceBetweenInputAndButton → double
The distance between the input field and the submit button.
final
hashCode → int
The hash code for this object.
no setterinherited
hintText → String
The hint text for the input field.
final
hintTextStyle → TextStyle
The text style of the hint text.
final
inputDecoration → InputDecoration?
The input decoration for the input field.
final
inputFormatter → List<TextInputFormatter>?
The input formatters for the input field.
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
keyboardType → TextInputType?
The type of keyboard to use for the input field.
final
mainAxisAlignment → MainAxisAlignment?
The main axis alignment of the widget.
final
maxLines → int?
The maximum number of lines for the input field.
final
minLines → int?
The minimum number of lines for the input field.
final
onPressed → dynamic Function(String b)
The function to call when the submit button is pressed.
final
padding → EdgeInsets
The overall padding around the entire widget.
final
paddingBetweenButtonAndTextField → EdgeInsets
The padding between the submit button and the input field.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
createElement() → StatelessElement
Creates a StatelessElement to manage this widget's location in the tree.
inherited
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited