flutter_slidable
5.2.0, released 3 weeks ago by romainrastel.com
Flutter implementation of slidable list item with directional slide actions and dismissal.
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.
- country_picker
A Flutter widget to pick a country from a list with optional phone code and search.
78Compare - indexed_list_view
Infinite ListView that lets you programmatically jump instantly to any item by index.
82Compare - infinite_grouped_list
Dynamic scrolling list that efficiently groups items and loads more data as the user scrolls.
79Compare - slideable
Flexible and customizable slideable list item widget for Flutter apps.
62Compare
Works with
Packages commonly used together with flutter_slidable: ones it builds on, ones built on it, and its own family.
- material_uiflutter_slidable depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- at_contacts_flutterBuilt on flutter_slidableA Flutter plugin to manage contacts for an atSign using the atPlatform.
- optimusBuilt on flutter_slidableA design system providing reusable UI components for Flutter mobile and web.