Skip to content
pubscout

flutter_slidable

5.2.0, released 3 weeks ago by romainrastel.com

Flutter implementation of slidable list item with directional slide actions and dismissal.

Flutter FavoriteWASM-readyUses material_ui
$ flutter pub add flutter_slidable
Source repository

What it does

Provides a slidable list item widget that supports left/top (start) and right/bottom (end) action panes with multiple built-in motions like behind, drawer, scroll, and stretch. It allows users to reveal slide actions or dismiss the item entirely with custom or built-in animations.

AI-written summary of version 5.2.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need list items with swipe actions like delete, archive, or edit.
  • You want configurable slide action motions such as scroll, stretch, drawer, or behind effects.

Skip it when

  • Your app does not use the required material_ui package (required since v5.0.0).
  • You require complex multi-step swipe gestures that go beyond standard list item side actions.

Strengths

  • Recognized as a Flutter Favorite package.
  • Multiple built-in motion animations and action pane layouts.
  • Supports programmatic control via SlidableController.

Weaknesses

  • Requires the app to be migrated to the decoupled material_ui package starting from version 5.0.0.
  • Strict minimum Flutter and Dart version requirements.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Add flutter_slidable to pubspec.yaml and ensure your app uses the material_ui package if using built-in actions.

Slidable(
  key: const ValueKey(0),
  startActionPane: ActionPane(
    motion: const ScrollMotion(),
    children: const [
      SlidableAction(
        onPressed: doNothing,
        backgroundColor: Color(0xFFFE4A49),
        foregroundColor: Colors.white,
        icon: Icons.delete,
        label: 'Delete',
      ),
    ],
  ),
  child: const ListTile(title: Text('Slide me')),
)

Alternatives

Packages that do the same job and could replace flutter_slidable.

Works with

Packages commonly used together with flutter_slidable: ones it builds on, ones built on it, and its own family.