Skip to content

Commit

Permalink
Merge remote-tracking branch 'huseyinhamad/bugfix/#136'
Browse files Browse the repository at this point in the history
  • Loading branch information
nlfiedler committed Mar 13, 2023
2 parents 088a2ce + cb30c04 commit 3965be6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
15 changes: 13 additions & 2 deletions lib/src/chips_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ class ChipsInputState<T> extends State<ChipsInput<T>>
WidgetsBinding.instance.addPostFrameCallback((_) async {
final renderBox = context.findRenderObject() as RenderBox;
await Scrollable.of(context)
?.position
.position
.ensureVisible(renderBox)
.then((_) async {
WidgetsBinding.instance.addPostFrameCallback((_) {
Expand Down Expand Up @@ -428,6 +428,17 @@ class ChipsInputState<T> extends State<ChipsInput<T>>
//TODO
}

@override
void performSelector(String selectorName) {
//TODO
}

@override
void didChangeInputControl(
TextInputControl? oldControl, TextInputControl? newControl) {
//TODO
}

@override
void didUpdateWidget(covariant ChipsInput<T> oldWidget) {
super.didUpdateWidget(oldWidget);
Expand Down Expand Up @@ -476,7 +487,7 @@ class ChipsInputState<T> extends State<ChipsInput<T>>
maxLines: 1,
overflow: widget.textOverflow,
style: widget.textStyle ??
theme.textTheme.subtitle1!.copyWith(height: 1.5),
theme.textTheme.titleMedium?.copyWith(height: 1.5),
),
),
Flexible(
Expand Down
2 changes: 1 addition & 1 deletion lib/src/suggestions_box_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class SuggestionsBoxController {
void open() {
if (_isOpened) return;
assert(overlayEntry != null);
Overlay.of(context)?.insert(overlayEntry!);
Overlay.of(context).insert(overlayEntry!);
_isOpened = true;
}

Expand Down

0 comments on commit 3965be6

Please sign in to comment.