Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions lib/src/chips_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ class ChipsInputState<T> extends State<ChipsInput<T>> implements TextInputClient
Future.delayed(const Duration(milliseconds: 300), () {
WidgetsBinding.instance.addPostFrameCallback((_) async {
final renderBox = context.findRenderObject() as RenderBox;
await Scrollable.of(context)?.position.ensureVisible(renderBox).then((_) {
await Scrollable.of(context).position.ensureVisible(renderBox).then((_) {
WidgetsBinding.instance.addPostFrameCallback((_) {
_suggestionsBoxController.overlayEntry?.markNeedsBuild();
});
Expand Down Expand Up @@ -374,6 +374,17 @@ class ChipsInputState<T> extends State<ChipsInput<T>> implements TextInputClient
//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 @@ -419,7 +430,7 @@ class ChipsInputState<T> extends State<ChipsInput<T>> implements TextInputClient
_value.normalCharactersText,
maxLines: 1,
overflow: widget.textOverflow,
style: widget.textStyle ?? theme.textTheme.subtitle1?.copyWith(height: 1.5),
style: widget.textStyle ?? 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
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_chips_input
description: Flutter library for building input fields with InputChips as input options.
version: 1.10.0
version: 1.11.0
homepage: https://github.com/danvick/flutter_chips_input

environment:
Expand Down