From 60ec70f0559ed4d070a26cc0c6f5d1098ace8013 Mon Sep 17 00:00:00 2001 From: Romain Rastel Date: Wed, 22 Aug 2018 08:57:15 +0200 Subject: [PATCH] Fixes #22 and Fixes #24 --- CHANGELOG.md | 4 ++++ README.md | 2 +- lib/src/widgets/slidable.dart | 2 +- pubspec.yaml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe11f0c8..0f13c7ab 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.4.2 +### Fixed +* https://github.com/letsar/flutter_slidable/issues/22 and https://github.com/letsar/flutter_slidable/issues/24 (Issue with controller). + ## 0.4.1 ### Added * The `SlidableController` class. diff --git a/README.md b/README.md index 6a8ccb2b..fc7b08b5 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ In the `pubspec.yaml` of your flutter project, add the following dependency: ```yaml dependencies: ... - flutter_slidable: "^0.4.1" + flutter_slidable: "^0.4.2" ``` In your library add the following import: diff --git a/lib/src/widgets/slidable.dart b/lib/src/widgets/slidable.dart index 689c7b33..d7a31103 100644 --- a/lib/src/widgets/slidable.dart +++ b/lib/src/widgets/slidable.dart @@ -886,7 +886,7 @@ class SlidableState extends State _actionsMoveController.dispose(); _resizeController?.dispose(); _removeScrollingNotifierListener(); - widget.controller?.activeState = null; + widget.controller?._activeState = null; super.dispose(); } diff --git a/pubspec.yaml b/pubspec.yaml index bc1f08af..cd4e971f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_slidable description: A Flutter implementation of slidable list item with directional slide actions that can be dismissed. -version: 0.4.1 +version: 0.4.2 author: Romain Rastel homepage: https://github.com/letsar/flutter_slidable