Skip to content

Commit

Permalink
Fix merge conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
felixmccuaig committed Jun 11, 2022
2 parents fa16e2d + deab35a commit ff6d184
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions lib/autocomplete_textfield.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ class AutoCompleteTextField<T> extends StatefulWidget {
final Radius cursorRadius;
final bool showCursor;
final bool autofocus;
final bool autocorrect;

AutoCompleteTextField(
{@required
Expand Down Expand Up @@ -69,6 +70,8 @@ class AutoCompleteTextField<T> extends StatefulWidget {
this.clearOnSubmit: true, //Clear autoCompleteTextfield on submit
this.textInputAction: TextInputAction.done,
this.textCapitalization: TextCapitalization.sentences,
this.autocorrect:
false, //set the autoroccection on the internal text input field
this.minLength = 1,
this.controller,
this.focusNode,
Expand Down Expand Up @@ -128,7 +131,9 @@ class AutoCompleteTextField<T> extends StatefulWidget {
showCursor,
focusNode,
autofocus,
unFocusOnItemSubmitted);
unFocusOnItemSubmitted,
focusNode,
autocorrect);
}

class AutoCompleteTextFieldState<T> extends State<AutoCompleteTextField> {
Expand Down Expand Up @@ -162,6 +167,7 @@ class AutoCompleteTextFieldState<T> extends State<AutoCompleteTextField> {
TextStyle style;
TextInputType keyboardType;
TextInputAction textInputAction;
bool autocorrect;

AutoCompleteTextFieldState(
this.suggestions,
Expand Down Expand Up @@ -189,7 +195,9 @@ class AutoCompleteTextFieldState<T> extends State<AutoCompleteTextField> {
this.showCursor,
this.focusNode,
this.autofocus,
this.unFocusOnItemSubmitted) {
this.unFocusOnItemSubmitted,
this.focusNode,
this.autocorrect) {
textField = new TextField(
inputFormatters: inputFormatters,
textCapitalization: textCapitalization,
Expand All @@ -204,6 +212,7 @@ class AutoCompleteTextFieldState<T> extends State<AutoCompleteTextField> {
autofocus: autofocus,
controller: controller ?? new TextEditingController(),
textInputAction: textInputAction,
autocorrect: autocorrect,
onChanged: (newText) {
currentText = newText;
updateOverlay(newText);
Expand Down Expand Up @@ -503,5 +512,7 @@ class SimpleAutoCompleteTextField extends AutoCompleteTextField<String> {
showCursor,
focusNode,
autofocus,
unFocusOnItemSubmitted);
unFocusOnItemSubmitted,
focusNode,
autocorrect);
}

0 comments on commit ff6d184

Please sign in to comment.