Skip to content

Commit

Permalink
reactive_raw_autocomplete 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vasilich6107 committed May 9, 2024
1 parent 8b85ac7 commit 62f7172
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/reactive_raw_autocomplete/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [2.1.0]

* Props update

## [2.0.2]

* Support `reactive_forms: 17.x`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ import 'package:reactive_forms/reactive_forms.dart';
typedef ControllerInitCallback = void Function(
TextEditingController controller);

Widget _defaultContextMenuBuilder(
BuildContext context, EditableTextState editableTextState) {
return AdaptiveTextSelectionToolbar.editableText(
editableTextState: editableTextState,
);
}

/// A [ReactiveRawAutocomplete] that contains a [TextField].
///
/// This is a convenience widget that wraps a [TextField] widget in a
Expand Down Expand Up @@ -155,6 +162,21 @@ class ReactiveRawAutocomplete<T, V extends Object>
this.onControllerInit,
bool scribbleEnabled = true,
bool enableIMEPersonalizedLearning = true,
OptionsViewOpenDirection optionsViewOpenDirection =
OptionsViewOpenDirection.down,
UndoHistoryController? undoController,
TapRegionCallback? onTapOutside,
bool cursorOpacityAnimates = true,
ContentInsertionConfiguration? contentInsertionConfiguration,
Clip clipBehavior = Clip.hardEdge,
EditableTextContextMenuBuilder? contextMenuBuilder =
_defaultContextMenuBuilder,
SpellCheckConfiguration? spellCheckConfiguration,
TextMagnifierConfiguration? magnifierConfiguration,
bool onTapAlwaysCalled = false,
bool canRequestFocus = true,
Color? cursorErrorColor,
MaterialStatesController? statesController,
}) : super(
builder: (field) {
final state = field as _ReactiveRawAutocompleteState<T, V>;
Expand Down Expand Up @@ -251,6 +273,19 @@ class ReactiveRawAutocomplete<T, V extends Object>
scribbleEnabled: scribbleEnabled,
enableIMEPersonalizedLearning:
enableIMEPersonalizedLearning,
undoController: undoController,
onTapOutside: onTapOutside,
cursorOpacityAnimates: cursorOpacityAnimates,
contentInsertionConfiguration:
contentInsertionConfiguration,
clipBehavior: clipBehavior,
contextMenuBuilder: contextMenuBuilder,
spellCheckConfiguration: spellCheckConfiguration,
magnifierConfiguration: magnifierConfiguration,
statesController: statesController,
cursorErrorColor: cursorErrorColor,
onTapAlwaysCalled: onTapAlwaysCalled,
canRequestFocus: canRequestFocus,
);
},
);
Expand Down
2 changes: 1 addition & 1 deletion packages/reactive_raw_autocomplete/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: reactive_raw_autocomplete
description: Wrapper around RawAutocomplete to use with reactive_forms
version: 2.0.2
version: 2.1.0
repository: https://github.com/artflutter/reactive_forms_widgets/tree/master/packages/reactive_raw_autocomplete
issue_tracker: https://github.com/artflutter/reactive_forms_widgets/issues

Expand Down

0 comments on commit 62f7172

Please sign in to comment.