Skip to content

Commit

Permalink
Fixed Issue #66. Fixed DataList null id
Browse files Browse the repository at this point in the history
  • Loading branch information
Dn-a committed Nov 11, 2020
1 parent 6d6d89f commit cf6d3f8
Show file tree
Hide file tree
Showing 14 changed files with 33 additions and 26 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [0.4.9+1] - 2020-11-11.

* `[Fixed]` - Issue #66.
* `[Fixed]` - `DataList` null id.

## [0.4.9] - 2020-09-15.

* `[Added]` - Possibility to to define the padding of the `textField`.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# flutter_tags
[![pub package](https://img.shields.io/badge/pub-0.4.9-orange.svg)](https://pub.dartlang.org/packages/flutter_tags)
[![pub package](https://img.shields.io/badge/pub-0.4.9+1-orange.svg)](https://pub.dartlang.org/packages/flutter_tags)
[![Awesome Flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true&style=flat-square)](https://github.com/Solido/awesome-flutter#ui)
[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.me/dnag88)

Expand All @@ -9,7 +9,7 @@ Create beautiful tags quickly and easily.
Add this to your package's pubspec.yaml file:
```dart
dependencies:
flutter_tags: "^0.4.9"
flutter_tags: "^0.4.9+1"
```


Expand Down
Binary file not shown.
Binary file not shown.
Binary file modified example/android/.gradle/5.6.2/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified example/android/.gradle/5.6.2/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified example/android/.gradle/5.6.2/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified example/android/.gradle/5.6.2/javaCompile/taskHistory.bin
Binary file not shown.
Binary file not shown.
Binary file modified example/android/.gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
8 changes: 4 additions & 4 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -69,9 +69,9 @@ class _MyHomePageState extends State<MyHomePage>

bool _symmetry = false;
bool _removeButton = true;
bool _singleItem = false;
bool _singleItem = true;
bool _startDirection = false;
bool _horizontalScroll = false;
bool _horizontalScroll = true;
bool _withSuggesttions = false;
int _count = 0;
int _column = 0;
Expand Down Expand Up @@ -655,8 +655,8 @@ class _MyHomePageState extends State<MyHomePage>
TagsTextField get _textField {
return TagsTextField(
autofocus: false,
//width: double.infinity,
//padding: EdgeInsets.symmetric(horizontal: 10),
width: double.infinity,
padding: EdgeInsets.symmetric(horizontal: 10),
textStyle: TextStyle(
fontSize: _fontSize,
//height: 1
Expand Down
2 changes: 2 additions & 0 deletions lib/src/item_tags.dart
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ class _ItemTagsState extends State<ItemTags> {
//print("replace");
_dataListInherited.list[widget.index] = DataList(
title: widget.title,
index: widget.index,
active: widget.singleItem ? false : widget.active,
customData: widget.customData);
}
Expand Down Expand Up @@ -435,6 +436,7 @@ class _ItemTagsState extends State<ItemTags> {
/// Single item selection
void _singleItem(DataListInherited dataSetIn, DataList dataSet) {
dataSetIn.list
.where((tg) => tg != null)
.where((tg) => tg.active)
.where((tg2) => tg2 != dataSet)
.forEach((tg) => tg.active = false);
Expand Down
38 changes: 19 additions & 19 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,49 @@ packages:
name: async
url: "https://pub.dartlang.org"
source: hosted
version: "2.4.2"
version: "2.5.0-nullsafety.1"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.1.0-nullsafety.1"
characters:
dependency: transitive
description:
name: characters
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
version: "1.1.0-nullsafety.3"
charcode:
dependency: transitive
description:
name: charcode
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.3"
version: "1.2.0-nullsafety.1"
clock:
dependency: transitive
description:
name: clock
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.1"
version: "1.1.0-nullsafety.1"
collection:
dependency: transitive
description:
name: collection
url: "https://pub.dartlang.org"
source: hosted
version: "1.14.13"
version: "1.15.0-nullsafety.3"
fake_async:
dependency: transitive
description:
name: fake_async
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0-nullsafety.1"
flutter:
dependency: "direct main"
description: flutter
Expand All @@ -66,21 +66,21 @@ packages:
name: matcher
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.8"
version: "0.12.10-nullsafety.1"
meta:
dependency: transitive
description:
name: meta
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.8"
version: "1.3.0-nullsafety.3"
path:
dependency: transitive
description:
name: path
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.0"
version: "1.8.0-nullsafety.1"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -92,55 +92,55 @@ packages:
name: source_span
url: "https://pub.dartlang.org"
source: hosted
version: "1.7.0"
version: "1.8.0-nullsafety.2"
stack_trace:
dependency: transitive
description:
name: stack_trace
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.5"
version: "1.10.0-nullsafety.1"
stream_channel:
dependency: transitive
description:
name: stream_channel
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
version: "2.1.0-nullsafety.1"
string_scanner:
dependency: transitive
description:
name: string_scanner
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
version: "1.1.0-nullsafety.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
version: "1.2.0-nullsafety.1"
test_api:
dependency: transitive
description:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.17"
version: "0.2.19-nullsafety.2"
typed_data:
dependency: transitive
description:
name: typed_data
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.3.0-nullsafety.3"
vector_math:
dependency: transitive
description:
name: vector_math
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.8"
version: "2.1.0-nullsafety.3"
sdks:
dart: ">=2.9.0-14.0.dev <3.0.0"
dart: ">=2.10.0-110 <2.11.0"
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: flutter_tags
description: Creating selectable and input tags (TextField) has never been easier.
version: 0.4.9
version: 0.4.9+1
author: Antonino Di Natale <gyorgio88@gmail.com>
homepage: https://github.com/Dn-a/flutter_tags

Expand Down

0 comments on commit cf6d3f8

Please sign in to comment.