Skip to content

Commit 9d929cc

Browse files
committed
Added support for Flutter v1.20
1 parent fc3589a commit 9d929cc

File tree

6 files changed

+35
-76
lines changed

6 files changed

+35
-76
lines changed

CHANGELOG.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1-
## [1.9.0-dev.3] - 15-Jun-2020
2-
* Added fixes from v1.8.3
1+
## [1.9.0] - 05-Aug-2020
2+
* Added support for Flutter v1.20
33

44
## [1.8.3] - 15-Jun-2020
55
* Fixed bug in checking whether `maxChips` has been reached.
66
* Fix `setState called on disposed widget`
77

8-
## [1.9.0-dev.2] - 14-Jun-2020
9-
* Merged in changes from v1.8.2
10-
118
## [1.8.2] - 14-Jun-2020
129
* Added `autofocus` feature. Closes #41
1310
* Allow user-entered text to be edited when chip is deleted with keyboard. Closes #38
@@ -16,9 +13,6 @@
1613
* Fixed bug where when keyboard is dismissed and focus retained, keyboard couldn't come back
1714
* Show overlay above field if more space available. Closes #24
1815

19-
## [1.9.0-dev.1] - 24-Apr-2020
20-
* Fixed bug: `Missing implementations for TextInputClient.currentAutofillScope`. Closes #37
21-
2216
## [1.8.1] - 24-Apr-2020
2317
* Attempt to ensure to ensure field always visible. Closes #25
2418
* Also fixed issue when overlay position doesn't adjust with field height.

README.md

-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ Flutter library for building input fields with InputChips as input options.
77
### Installation
88
Follow installation instructions [here](https://pub.dartlang.org/packages/flutter_chips_input#-installing-tab-)
99

10-
**NOTE:** For anyone on pre-release Flutter channels, kindly prefer the [pre-release versions of the package](https://pub.dev/packages/flutter_chips_input/versions#prerelease).
11-
1210
### Import
1311
```dart
1412
import 'package:flutter_chips_input/flutter_chips_input.dart';

example/lib/main.dart

+4-2
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,10 @@ class _MyHomePageState extends State<MyHomePage> {
201201
),*/
202202
RaisedButton(
203203
child: Text('Add Chip'),
204-
onPressed: (){
205-
_chipKey.currentState.selectSuggestion(AppProfile('Gina', '[email protected]',
204+
onPressed: () {
205+
_chipKey.currentState.selectSuggestion(AppProfile(
206+
'Gina',
207+
206208
'https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png'));
207209
},
208210
),

lib/src/chips_input.dart

+5-5
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ class ChipsInputState<T> extends State<ChipsInput<T>>
9292
StreamController<List<T>> _suggestionsStreamController;
9393
int _searchId = 0;
9494
TextEditingValue _value = TextEditingValue();
95-
TextEditingValue _receivedRemoteTextEditingValue;
95+
// TextEditingValue _receivedRemoteTextEditingValue;
9696
TextInputConnection _textInputConnection;
9797
SuggestionsBoxController _suggestionsBoxController;
9898
LayerLink _layerLink = LayerLink();
@@ -115,7 +115,7 @@ class ChipsInputState<T> extends State<ChipsInput<T>>
115115
bool get _hasReachedMaxChips =>
116116
widget.maxChips != null && _chips.length >= widget.maxChips;
117117

118-
FocusAttachment _focusAttachment;
118+
// FocusAttachment _focusAttachment;
119119
FocusNode _focusNode;
120120

121121
FocusNode get _effectiveFocusNode =>
@@ -127,7 +127,7 @@ class ChipsInputState<T> extends State<ChipsInput<T>>
127127
void initState() {
128128
super.initState();
129129
_chips.addAll(widget.initialValue);
130-
_focusAttachment = _effectiveFocusNode.attach(context);
130+
// _focusAttachment = _effectiveFocusNode.attach(context);
131131
_suggestionsBoxController = SuggestionsBoxController(context);
132132
_suggestionsStreamController = StreamController<List<T>>.broadcast();
133133
_effectiveFocusNode.addListener(_handleFocusChanged);
@@ -285,14 +285,14 @@ class ChipsInputState<T> extends State<ChipsInput<T>>
285285
if (_hasInputConnection) {
286286
_textInputConnection.close();
287287
_textInputConnection = null;
288-
_receivedRemoteTextEditingValue = null;
288+
// _receivedRemoteTextEditingValue = null;
289289
}
290290
}
291291

292292
@override
293293
void updateEditingValue(TextEditingValue value) {
294294
// print("updateEditingValue FIRED with ${value.text}");
295-
_receivedRemoteTextEditingValue = value;
295+
// _receivedRemoteTextEditingValue = value;
296296
var _oldTextEditingValue = _value;
297297
if (value.text != _oldTextEditingValue.text) {
298298
setState(() {

pubspec.lock

+23-58
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,55 @@
11
# Generated by pub
22
# See https://dart.dev/tools/pub/glossary#lockfile
33
packages:
4-
archive:
5-
dependency: transitive
6-
description:
7-
name: archive
8-
url: "https://pub.dartlang.org"
9-
source: hosted
10-
version: "2.0.13"
11-
args:
12-
dependency: transitive
13-
description:
14-
name: args
15-
url: "https://pub.dartlang.org"
16-
source: hosted
17-
version: "1.6.0"
184
async:
195
dependency: transitive
206
description:
217
name: async
228
url: "https://pub.dartlang.org"
239
source: hosted
24-
version: "2.4.1"
10+
version: "2.4.2"
2511
boolean_selector:
2612
dependency: transitive
2713
description:
2814
name: boolean_selector
2915
url: "https://pub.dartlang.org"
3016
source: hosted
3117
version: "2.0.0"
18+
characters:
19+
dependency: transitive
20+
description:
21+
name: characters
22+
url: "https://pub.dartlang.org"
23+
source: hosted
24+
version: "1.0.0"
3225
charcode:
3326
dependency: transitive
3427
description:
3528
name: charcode
3629
url: "https://pub.dartlang.org"
3730
source: hosted
3831
version: "1.1.3"
39-
collection:
32+
clock:
4033
dependency: transitive
4134
description:
42-
name: collection
35+
name: clock
4336
url: "https://pub.dartlang.org"
4437
source: hosted
45-
version: "1.14.12"
46-
convert:
38+
version: "1.0.1"
39+
collection:
4740
dependency: transitive
4841
description:
49-
name: convert
42+
name: collection
5043
url: "https://pub.dartlang.org"
5144
source: hosted
52-
version: "2.1.1"
53-
crypto:
45+
version: "1.14.13"
46+
fake_async:
5447
dependency: transitive
5548
description:
56-
name: crypto
49+
name: fake_async
5750
url: "https://pub.dartlang.org"
5851
source: hosted
59-
version: "2.1.4"
52+
version: "1.1.0"
6053
flutter:
6154
dependency: "direct main"
6255
description: flutter
@@ -67,20 +60,13 @@ packages:
6760
description: flutter
6861
source: sdk
6962
version: "0.0.0"
70-
image:
71-
dependency: transitive
72-
description:
73-
name: image
74-
url: "https://pub.dartlang.org"
75-
source: hosted
76-
version: "2.1.12"
7763
matcher:
7864
dependency: transitive
7965
description:
8066
name: matcher
8167
url: "https://pub.dartlang.org"
8268
source: hosted
83-
version: "0.12.6"
69+
version: "0.12.8"
8470
meta:
8571
dependency: transitive
8672
description:
@@ -94,21 +80,7 @@ packages:
9480
name: path
9581
url: "https://pub.dartlang.org"
9682
source: hosted
97-
version: "1.6.4"
98-
petitparser:
99-
dependency: transitive
100-
description:
101-
name: petitparser
102-
url: "https://pub.dartlang.org"
103-
source: hosted
104-
version: "2.4.0"
105-
quiver:
106-
dependency: transitive
107-
description:
108-
name: quiver
109-
url: "https://pub.dartlang.org"
110-
source: hosted
111-
version: "2.1.3"
83+
version: "1.7.0"
11284
sky_engine:
11385
dependency: transitive
11486
description: flutter
@@ -127,7 +99,7 @@ packages:
12799
name: stack_trace
128100
url: "https://pub.dartlang.org"
129101
source: hosted
130-
version: "1.9.3"
102+
version: "1.9.5"
131103
stream_channel:
132104
dependency: transitive
133105
description:
@@ -155,27 +127,20 @@ packages:
155127
name: test_api
156128
url: "https://pub.dartlang.org"
157129
source: hosted
158-
version: "0.2.15"
130+
version: "0.2.17"
159131
typed_data:
160132
dependency: transitive
161133
description:
162134
name: typed_data
163135
url: "https://pub.dartlang.org"
164136
source: hosted
165-
version: "1.1.6"
137+
version: "1.2.0"
166138
vector_math:
167139
dependency: transitive
168140
description:
169141
name: vector_math
170142
url: "https://pub.dartlang.org"
171143
source: hosted
172144
version: "2.0.8"
173-
xml:
174-
dependency: transitive
175-
description:
176-
name: xml
177-
url: "https://pub.dartlang.org"
178-
source: hosted
179-
version: "3.6.1"
180145
sdks:
181-
dart: ">=2.6.0 <3.0.0"
146+
dart: ">=2.9.0-14.0.dev <3.0.0"

pubspec.yaml

+1-1
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.0-dev.3
3+
version: 1.9.0
44
homepage: https://github.com/danvick/flutter_chips_input
55

66
environment:

0 commit comments

Comments
 (0)