From f626eab229b3e632c3c4ee1f0a4af3725a56407b Mon Sep 17 00:00:00 2001 From: bkoznov Date: Thu, 2 Feb 2023 13:50:14 -0500 Subject: [PATCH 1/2] update to flutter 3.7. followed @huseyinhamad --- lib/src/chips_input.dart | 15 +++++++++++++-- lib/src/suggestions_box_controller.dart | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/lib/src/chips_input.dart b/lib/src/chips_input.dart index 28426e99..4ee15ded 100644 --- a/lib/src/chips_input.dart +++ b/lib/src/chips_input.dart @@ -283,7 +283,7 @@ class ChipsInputState extends State> 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(); }); @@ -374,6 +374,17 @@ class ChipsInputState extends State> implements TextInputClient //TODO } + @override + void performSelector(String selectorName) { + //TODO + } + + @override + void didChangeInputControl( + TextInputControl? oldControl, TextInputControl? newControl) { + //TODO + } + @override void didUpdateWidget(covariant ChipsInput oldWidget) { super.didUpdateWidget(oldWidget); @@ -419,7 +430,7 @@ class ChipsInputState extends State> 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( diff --git a/lib/src/suggestions_box_controller.dart b/lib/src/suggestions_box_controller.dart index df9586e0..157d55eb 100644 --- a/lib/src/suggestions_box_controller.dart +++ b/lib/src/suggestions_box_controller.dart @@ -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; } From b47b4439d5afe5e5c402be3de98198f33127e8e6 Mon Sep 17 00:00:00 2001 From: bkoznov Date: Thu, 2 Feb 2023 13:52:59 -0500 Subject: [PATCH 2/2] version number bump --- pubspec.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pubspec.yaml b/pubspec.yaml index 66ae9947..5ccc414c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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: