Skip to content

Commit 8c08caa

Browse files
authored
Prepare for 1.10.0 release. (#76)
1 parent 7b69a58 commit 8c08caa

3 files changed

Lines changed: 10 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## [1.10.0] - 06-Jan-2021
2+
3+
- Fixed the support for `suggestionsBoxMaxHeight`.
4+
- Added optional `initialSuggestions` parameter so that one can see the suggestions box as soon as the field gains focus, without typing in the keyboard.
5+
16
## [1.9.5] - 08-Dec-2020
27

38
- Fixed bug where `FocusNode` was not being properly disposed.

lib/src/chips_input.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,10 @@ class ChipsInputState<T> extends State<ChipsInput<T>>
190190
renderBoxOffset.dy -
191191
size.height;
192192
var _suggestionBoxHeight = max(topAvailableSpace, bottomAvailableSpace);
193-
if (null != widget.suggestionsBoxMaxHeight)
194-
_suggestionBoxHeight = min(_suggestionBoxHeight, widget.suggestionsBoxMaxHeight);
193+
if (null != widget.suggestionsBoxMaxHeight) {
194+
_suggestionBoxHeight =
195+
min(_suggestionBoxHeight, widget.suggestionsBoxMaxHeight);
196+
}
195197
final showTop = topAvailableSpace > bottomAvailableSpace;
196198
// print("showTop: $showTop" );
197199
final compositedTransformFollowerOffset =

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: flutter_chips_input
22
description: Flutter library for building input fields with InputChips as input options.
3-
version: 1.9.5
3+
version: 1.10.0
44
homepage: https://github.com/danvick/flutter_chips_input
55

66
environment:

0 commit comments

Comments
 (0)