Skip to content

Commit

Permalink
Fixes static analysis issues
Browse files Browse the repository at this point in the history
  • Loading branch information
letsar committed Jul 21, 2020
1 parent fc20250 commit a9c5504
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions lib/src/widgets/slidable.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<SlidableData>();
}

/// Gets the the given offset related to the current direction.
Expand Down Expand Up @@ -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;
}

Expand Down
3 changes: 1 addition & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>
version: 0.5.5
homepage: https://github.com/letsar/flutter_slidable

dependencies:
Expand Down

0 comments on commit a9c5504

Please sign in to comment.