From a9c55044f1da66196ddfcae874c628240fd633d8 Mon Sep 17 00:00:00 2001 From: Romain Rastel Date: Tue, 21 Jul 2020 14:46:00 +0200 Subject: [PATCH] Fixes static analysis issues --- .gitignore | 2 ++ CHANGELOG.md | 4 ++++ README.md | 2 +- lib/src/widgets/slidable.dart | 4 ++-- pubspec.yaml | 3 +-- 5 files changed, 10 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index c20e283b..e38e45f0 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,5 @@ example/android/app/\.classpath example/android/app/\.project example/android/app/\.settings/org\.eclipse\.buildship\.core\.prefs + +example/ios/Flutter/flutter_export_environment\.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f10e683..0d11b368 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.5.5 +### Fixed +* Static Analysis issues + ## 0.5.4 ### Added * Ripple effect when tapping on the IconSlideAction (https://github.com/letsar/flutter_slidable/pull/89) diff --git a/README.md b/README.md index 44053998..89ac05bd 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ In the `pubspec.yaml` of your flutter project, add the following dependency: ```yaml dependencies: ... - flutter_slidable: "^0.5.4" + flutter_slidable: "^0.5.5" ``` In your library add the following import: diff --git a/lib/src/widgets/slidable.dart b/lib/src/widgets/slidable.dart index 77615ca5..ba27cc7d 100644 --- a/lib/src/widgets/slidable.dart +++ b/lib/src/widgets/slidable.dart @@ -243,7 +243,7 @@ class SlidableData extends InheritedWidget { /// The data from the closest instance of this class that encloses the given context. static SlidableData of(BuildContext context) { - return context.inheritFromWidgetOfExactType(SlidableData); + return context.dependOnInheritedWidgetOfExactType(); } /// Gets the the given offset related to the current direction. @@ -538,7 +538,7 @@ class Slidable extends StatefulWidget { /// The state from the closest instance of this class that encloses the given context. static SlidableState of(BuildContext context) { final _SlidableScope scope = - context.inheritFromWidgetOfExactType(_SlidableScope); + context.dependOnInheritedWidgetOfExactType<_SlidableScope>(); return scope?.state; } diff --git a/pubspec.yaml b/pubspec.yaml index 1b3a0ce0..8000a6ad 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,7 +1,6 @@ name: flutter_slidable description: A Flutter implementation of slidable list item with directional slide actions that can be dismissed. -version: 0.5.4 -author: Romain Rastel +version: 0.5.5 homepage: https://github.com/letsar/flutter_slidable dependencies: