diff --git a/CHANGELOG.md b/CHANGELOG.md index 26a10bb..bcce2d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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`. diff --git a/README.md b/README.md index c6ad42c..30cd8ea 100644 --- a/README.md +++ b/README.md @@ -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) @@ -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" ``` diff --git a/example/android/.gradle/5.6.2/executionHistory/executionHistory.bin b/example/android/.gradle/5.6.2/executionHistory/executionHistory.bin index ed2d649..f244ef2 100644 Binary files a/example/android/.gradle/5.6.2/executionHistory/executionHistory.bin and b/example/android/.gradle/5.6.2/executionHistory/executionHistory.bin differ diff --git a/example/android/.gradle/5.6.2/executionHistory/executionHistory.lock b/example/android/.gradle/5.6.2/executionHistory/executionHistory.lock index 9c51f64..0980171 100644 Binary files a/example/android/.gradle/5.6.2/executionHistory/executionHistory.lock and b/example/android/.gradle/5.6.2/executionHistory/executionHistory.lock differ diff --git a/example/android/.gradle/5.6.2/fileHashes/fileHashes.bin b/example/android/.gradle/5.6.2/fileHashes/fileHashes.bin index 67f7e25..c8d95d3 100644 Binary files a/example/android/.gradle/5.6.2/fileHashes/fileHashes.bin and b/example/android/.gradle/5.6.2/fileHashes/fileHashes.bin differ diff --git a/example/android/.gradle/5.6.2/fileHashes/fileHashes.lock b/example/android/.gradle/5.6.2/fileHashes/fileHashes.lock index 9dc65a5..f82fe00 100644 Binary files a/example/android/.gradle/5.6.2/fileHashes/fileHashes.lock and b/example/android/.gradle/5.6.2/fileHashes/fileHashes.lock differ diff --git a/example/android/.gradle/5.6.2/javaCompile/javaCompile.lock b/example/android/.gradle/5.6.2/javaCompile/javaCompile.lock index 0864f86..5640d0a 100644 Binary files a/example/android/.gradle/5.6.2/javaCompile/javaCompile.lock and b/example/android/.gradle/5.6.2/javaCompile/javaCompile.lock differ diff --git a/example/android/.gradle/5.6.2/javaCompile/taskHistory.bin b/example/android/.gradle/5.6.2/javaCompile/taskHistory.bin index 0a1ece8..746d580 100644 Binary files a/example/android/.gradle/5.6.2/javaCompile/taskHistory.bin and b/example/android/.gradle/5.6.2/javaCompile/taskHistory.bin differ diff --git a/example/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock b/example/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock index 62d82b5..784e85b 100644 Binary files a/example/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock and b/example/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock differ diff --git a/example/android/.gradle/buildOutputCleanup/outputFiles.bin b/example/android/.gradle/buildOutputCleanup/outputFiles.bin index d339948..d810af7 100644 Binary files a/example/android/.gradle/buildOutputCleanup/outputFiles.bin and b/example/android/.gradle/buildOutputCleanup/outputFiles.bin differ diff --git a/example/lib/main.dart b/example/lib/main.dart index edd52fb..c83756a 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -69,9 +69,9 @@ class _MyHomePageState extends State 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; @@ -655,8 +655,8 @@ class _MyHomePageState extends State 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 diff --git a/lib/src/item_tags.dart b/lib/src/item_tags.dart index 816cbe4..65a9653 100644 --- a/lib/src/item_tags.dart +++ b/lib/src/item_tags.dart @@ -181,6 +181,7 @@ class _ItemTagsState extends State { //print("replace"); _dataListInherited.list[widget.index] = DataList( title: widget.title, + index: widget.index, active: widget.singleItem ? false : widget.active, customData: widget.customData); } @@ -435,6 +436,7 @@ class _ItemTagsState extends State { /// 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); diff --git a/pubspec.lock b/pubspec.lock index 9477cdd..b308ac3 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -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 @@ -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 @@ -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" diff --git a/pubspec.yaml b/pubspec.yaml index 7c5ca02..b33119f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 homepage: https://github.com/Dn-a/flutter_tags