Skip to content

Commit

Permalink
bumped version to 0.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
letsar committed Aug 31, 2018
1 parent 48b78d9 commit 4fa605a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
12 changes: 8 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.4.4
### Added
* The `closeOnCanceled` parameter on `SlideToDismissDelegate` classes.

## 0.4.3
### Fixed
* https://github.com/letsar/flutter_slidable/issues/23 (Issue with Drawer delegate when different action count).
Expand All @@ -9,7 +13,7 @@
## 0.4.1
### Added
* The `SlidableController` class.
* The `controller` argument on `Slidable` constructors to enable keeping only one `Slidable` open.
* The `controller` parameter on `Slidable` constructors to enable keeping only one `Slidable` open.

## 0.4.0
### Added
Expand All @@ -22,16 +26,16 @@

## 0.3.2
### Added
* The `enabled` argument on `Slidable` constructors to enable or disable the slide effect (enabled by default).
* The `enabled` parameter on `Slidable` constructors to enable or disable the slide effect (enabled by default).

## 0.3.1
### Fixed
* https://github.com/letsar/flutter_slidable/issues/11 (slide action not rebuild after controller dismissed).

## 0.3.0
### Added
* The `closeOnTap` argument on slide actions to close when a action has been tapped.
* The `closeOnScroll` argument on `Slidable` to close when the nearest `Scrollable` starts to scroll.
* The `closeOnTap` parameter on slide actions to close when a action has been tapped.
* The `closeOnScroll` parameter on `Slidable` to close when the nearest `Scrollable` starts to scroll.
* The static `Slidable.of` function.

### Changed
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ In the `pubspec.yaml` of your flutter project, add the following dependency:
```yaml
dependencies:
...
flutter_slidable: "^0.4.3"
flutter_slidable: "^0.4.4"
```

In your library add the following import:
Expand Down Expand Up @@ -142,21 +142,21 @@ The slide actions stretch while the item is sliding:
#### How to prevent my slide action to close after it has been tapped?

By default, `SlideAction` and `IconSlideAction` close on tap.
To prevent this, you can pass in `false` to the `closeOnTap` constructor argument.
To prevent this, you can pass in `false` to the `closeOnTap` constructor parameter.

#### How to prevent my Slidable to close after my list has scrolled?

By default, a `Slidable` closes when the nearest `Scrollable` widget starts to scroll.
To prevent this, you can pass in `false` to the `closeOnScroll` constructor argument.
To prevent this, you can pass in `false` to the `closeOnScroll` constructor parameter.

#### How can I dismiss my Slidable?

In order to make your `Slidable` dismissible, you have to set the `slideToDismissDelegate` argument of the `Slidable` constructor.
In order to make your `Slidable` dismissible, you have to set the `slideToDismissDelegate` parameter of the `Slidable` constructor.
You can set any class that inherits `SlideToDismissDelegate`. For now there is only one built-in: `SlideToDismissDrawerDelegate`.

The `actionType` passed to the `onDismissed` callback let you know which action has been dismissed.

When a `Slidable` is dismissible, the `key` argument must not be null.
When a `Slidable` is dismissible, the `key` parameter must not be null.

Example:

Expand Down Expand Up @@ -221,7 +221,7 @@ slideToDismissDelegate: new SlideToDismissDrawerDelegate(

#### How to let keep only one `Slidable` open?

You have to set the `controller` argument of the `Slidable` constructors to a `SlidableController` instance:
You have to set the `controller` parameter of the `Slidable` constructors to a `SlidableController` instance:

```dart
final SlidableController slidableController = new SlidableController();
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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.3
version: 0.4.4
author: Romain Rastel <lets4r@gmail.com>
homepage: https://github.com/letsar/flutter_slidable

Expand Down

0 comments on commit 4fa605a

Please sign in to comment.