flutter_slidable
2,855
Stars
646
Forks
27
Watchers
82
Open Issues
MIT
许可证
Dart
语言
2018-07-15
创建时间
2026-11-01
最近更新
项目能做什么
支持自定义滑动操作和动画效果的 Flutter 列表项滑动组件库。
来源:基于仓库元数据
· 内容以仓库实际 README 为准
使用说明 查看原始 README 原仓库文档
中文使用说明暂未生成。下面保留原仓库 README 摘录,命令与配置均以原文为准。
原始 README 摘录(英文原文,节选前 3000 字符)
<!-- [![Build][github_action_badge]][github_action] -->
[![Pub][pub_badge]][pub] [![BuyMeACoffee][buy_me_a_coffee_badge]][buy_me_a_coffee]
[<img src="https://raw.githubusercontent.com/letsar/flutter_slidable/assets/flutter_favorite.png" width="100" />][flutter_favorite] **Slidable is a [Flutter Favorite][flutter_favorite] package!**
# flutter_slidable
A Flutter implementation of slidable list item with directional slide actions that can be dismissed.
## Migration to 5.0.0
Version 5.0.0 migrates to the decoupled [`material_ui`](https://pub.dev/packages/material_ui) package and requires Flutter 3.47.0. Your app must use `material_ui` too, otherwise the built-in actions won't use its theme. Read the [migration guide](https://github.com/letsar/flutter_slidable/blob/master/MIGRATION.md) for the details.
## Migration from 0.6.0
You can read this small guide to migrate from the 0.6 to the 1.0 version: https://github.com/letsar/flutter_slidable/wiki/Migration-from-version-0.6.0-to-version-1.0.0
## Features
* Accepts start (left/top) and end (right/bottom) action panes.
* Can be dismissed.
* 4 built-in action panes.
* 2 built-in slide action widgets.
* 1 built-in dismiss animation.
* You can easily create custom layouts and animations.
* You can use a builder to create your slide actions if you want special effects during animation.
* Closes when a slide action has been tapped (overridable).
* Closes when the nearest `Scrollable` starts to scroll (overridable).
* Option to disable the slide effect easily.
## Install
In the `pubspec.yaml` of your flutter project, add the following dependency:
```yaml
dependencies:
flutter_slidable: <latest_version>
```
In your library add the following import:
```dart
import 'package:flutter_slidable/flutter_slidable.dart';
```
## Getting started
Example:
```dart
Slidable(
// Specify a key if the Slidable is dismissible.
key: const ValueKey(0),
// The start action pane is the one at the left or the top side.
startActionPane: ActionPane(
// A motion is a widget used to control how the pane animates.
motion: const ScrollMotion(),
// A pane can dismiss the Slidable.
dismissible: DismissiblePane(onDismissed: () {}),
// All actions are defined in the children parameter.
children: const [
// A SlidableAction can have an icon and/or a label.
SlidableAction(
onPressed: doNothing,
backgroundColor: Color(0xFFFE4A49),
foregroundColor: Colors.white,
icon: Icons.delete,
label: 'Delete',
),
SlidableAction(
onPressed: doNothing,
backgroundColor: Color(0xFF21B7CA),
foregroundColor: Colors.white,
icon: Icons.share,
label: 'Share',
),
],
),
// The end action pane is the one at the right or the bottom side.
endActionPane: const ActionPane(
motion: ScrollMotion(),
children: [
SlidableAction(
// An action can be bigger than the others.
flex:
阅读完整原文
项目深度分析 规则生成(AI 未配置)
综合评分 43.4 分。该项目在“个人可实施性”维度得 45 分,“付费可能性”维度得 20.0 分,差异化空间 70.0 分(评分依据见评分卡)。
面向细分需求的二次开发产品
| 产品构想 | 基于 flutter_slidable 的核心能力,聚焦一个更窄的场景(如某平台、某行业)做差异化。 |
| 目标用户 | 该细分场景用户 |
| 难度/周期 | 中 · 2~6 周 |
| 收费模式 | 买断制 / 订阅制 / 广告 |
| 竞争风险 | 细分需求规模需验证 |
| 依据 | AI 推测:基于项目主题标签的判断 |
以上为规则引擎基于仓库公开数据生成的参考结论,包含推测成分,不构成投资或创业承诺;配置 AI 后可获得更深入的分析。
报告会保存到 个人中心
竞品与相似项目 GitHub Search 真实检索
| 项目 | 中文简介 | Stars | 语言 |
|---|---|---|---|
| JohannesMilke/slidable_actions_example | 中文介绍暂未生成 With Slidable you can swipe any widget to perform an action |
10 | Dart |
| tsx1453/flutter_slidable_list_view | 中文介绍暂未生成 | 8 | Dart |
| AmirBayat0/searchable_app_flutter | 中文介绍暂未生成 A Searchable app using flutter_slidable package |
8 | Dart |
| JohannesMilke/flutter_slidable_example | 中文介绍暂未生成 With the Flutter Slidable and Dismissable Widgets, you can s |
8 | - |
| JohannesMilke/slidable_list | 中文介绍暂未生成 How to swipe a ListTile widget to the right or left using Fl |
7 | - |
以上为通过 GitHub 官方 Search API 检索的相似项目,功能差异与优劣势需进一步人工确认,配置 AI 后可生成对比分析。
项目优势与风险
| 技术成熟度 | 创建于 2018-07-15,近 30 天仍在推送,发布过 14 个 Release |
| 社区活跃 | Star 2,855 / Fork 646 / Issue 82(数据支持,可自行核实) |
| 许可证 | MIT |
| 主要风险 | 上游项目方向可能变化;同赛道竞争者较多(见竞品表);热度与需求不完全等价 |
安装与使用
此项目未提供 Docker 镜像,安装步骤以原仓库 README 为准(涉及依赖安装与环境配置,对新手门槛较高)。