Fix bug subject email deleted when compose email

This commit is contained in:
dab246
2021-09-20 10:30:21 +07:00
committed by Dat H. Pham
parent 0c6ab6d704
commit 43377040d5
8 changed files with 125 additions and 121 deletions
@@ -11,44 +11,40 @@ class TextFieldBuilder {
int? _maxLines = 1;
TextEditingController? _textController;
TextFieldBuilder key(Key key) {
void key(Key key) {
_key = key;
return this;
}
TextFieldBuilder onChange(ValueChanged<String> onChange) {
void onChange(ValueChanged<String> onChange) {
_onTextChange = onChange;
return this;
}
TextFieldBuilder textStyle(TextStyle style) {
void textStyle(TextStyle style) {
_textStyle = style;
return this;
}
TextFieldBuilder textInputAction(TextInputAction inputAction) {
void textInputAction(TextInputAction inputAction) {
_textInputAction = inputAction;
return this;
}
TextFieldBuilder textDecoration(InputDecoration inputDecoration) {
void textDecoration(InputDecoration inputDecoration) {
_inputDecoration = inputDecoration;
return this;
}
TextFieldBuilder obscureText(bool obscureText) {
void obscureText(bool obscureText) {
_obscureText = obscureText;
return this;
}
TextFieldBuilder setText(String value) {
void setText(String value) {
_textController = TextEditingController.fromValue(TextEditingValue(text: value));
return this;
}
TextFieldBuilder maxLines(int? value) {
void addController(TextEditingController textEditingController) {
_textController = textEditingController;
}
void maxLines(int? value) {
_maxLines = value;
return this;
}
TextField build() {