{"id":13465687,"url":"https://github.com/letsar/flutter_slidable","last_synced_at":"2025-05-13T15:10:47.830Z","repository":{"id":38010589,"uuid":"141008724","full_name":"letsar/flutter_slidable","owner":"letsar","description":"A Flutter implementation of slidable list item with directional slide actions.","archived":false,"fork":false,"pushed_at":"2025-01-23T21:06:16.000Z","size":9485,"stargazers_count":2799,"open_issues_count":163,"forks_count":628,"subscribers_count":28,"default_branch":"master","last_synced_at":"2025-04-23T18:56:36.810Z","etag":null,"topics":["dart","flutter","slide-menu","swipe-menu"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/letsar.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"letsar","patreon":"romainrastel","open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":["https://www.buymeacoffee.com/romainrastel","paypal.me/RomainRastel"]}},"created_at":"2018-07-15T07:52:25.000Z","updated_at":"2025-04-22T03:25:32.000Z","dependencies_parsed_at":"2023-02-09T15:31:06.812Z","dependency_job_id":"b8386d8c-e0c8-410f-995f-623f0cfb88a6","html_url":"https://github.com/letsar/flutter_slidable","commit_stats":{"total_commits":189,"total_committers":17,"mean_commits":"11.117647058823529","dds":0.1428571428571429,"last_synced_commit":"81d8289e3120df34226e54c145e96267a9028f00"},"previous_names":[],"tags_count":43,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsar%2Fflutter_slidable","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsar%2Fflutter_slidable/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsar%2Fflutter_slidable/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/letsar%2Fflutter_slidable/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/letsar","download_url":"https://codeload.github.com/letsar/flutter_slidable/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253969248,"owners_count":21992263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","slide-menu","swipe-menu"],"created_at":"2024-07-31T15:00:33.842Z","updated_at":"2025-05-13T15:10:42.814Z","avatar_url":"https://github.com/letsar.png","language":"Dart","readme":"\u003c!-- [![Build][github_action_badge]][github_action] --\u003e\n[![Pub][pub_badge]][pub] [![BuyMeACoffee][buy_me_a_coffee_badge]][buy_me_a_coffee]\n\n[\u003cimg src=\"https://raw.githubusercontent.com/letsar/flutter_slidable/assets/flutter_favorite.png\" width=\"100\" /\u003e][flutter_favorite] **Slidable is a [Flutter Favorite][flutter_favorite] package!**\n\n\n# flutter_slidable\n\nA Flutter implementation of slidable list item with directional slide actions that can be dismissed.\n\n## Sponsors\n\nOur top sponsors are shown below! [[Become a Sponsor](https://github.com/sponsors/letsar)]\n\n\n\n\u003ctable\u003e    \n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://getstream.io/chat/flutter/tutorial/?utm_source=PubDev\u0026utm_medium=Github_Repo_Content_Ad\u0026utm_content=Developer\u0026utm_campaign=PubDev_Jan2022_FlutterChat\u0026utm_term=slidable\" target=\"_blank\"\u003e\u003cimg width=\"250px\" src=\"https://stream-blog.s3.amazonaws.com/blog/wp-content/uploads/fc148f0fc75d02841d017bb36e14e388/Stream-logo-with-background-.png\"/\u003e\u003c/a\u003e\u003cbr/\u003e\u003cspan\u003e\u003ca href=\"https://getstream.io/chat/flutter/tutorial/?utm_source=PubDev\u0026utm_medium=Github_Repo_Content_Ad\u0026utm_content=Developer\u0026utm_campaign=PubDev_Jan2022_FlutterChat\u0026utm_term=slidable\" target=\"_blank\"\u003eTry the Flutter Chat Tutorial \u0026nbsp💬\u003c/a\u003e\u003c/span\u003e\n            \u003c/td\u003e \n            \u003ctd align=\"center\"\u003e\n                \u003ca href=\"https://www.courier.com/?utm_source=flutter_slidable\u0026utm_campaign=osssponsors\" target=\"_blank\"\u003e\u003cimg width=\"250px\" src=\"https://media-hosting.imagekit.io//864640ee54c34c02/lz73kwDx.png?Expires=1832231436\u0026Key-Pair-Id=K2ZIVPTIP2VGHC\u0026Signature=EDo45uY6--M~xwlubOKREirOxMN7NUDIi92LzMYRFrn1AoMP12FJQ7McGWK4hoIqO3Yx-58n-eCc~xgGkq1v3Cyab8EQz5y~v3upgFY~43mUqzsjgDFQXHhEdT6Q2N6cBPDwAnOt2eYwTCLQFB3hSHPFAK8whdU9xA3bdcMW5uSzzqwwEavaecgE8PRAnYFGK2TvVXixT~ZROkF769t7D6kzI0QLcAbQAR-hKX89Z4Rumzep5oF1giJN5XNkRO9JkKFX-UXqMI2qcQV6Ctl1F5SywshNqU0ZZBkVgoZg11CnhkR~ejpjuIM9dmWrjReotjGK5QVLOd-ngFo~3PXZQw__\"/\u003e\u003c/a\u003e\u003cbr/\u003e\u003cspan\u003e\u003ca href=\"https://www.courier.com/?utm_source=flutter_slidable\u0026utm_campaign=osssponsors\" target=\"_blank\"\u003eYour complete platform for sending notifications\u003c/a\u003e\u003c/span\u003e\n            \u003c/td\u003e            \n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e\n\n## Migration from 0.6.0\n\nYou 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\n\n## Features\n\n* Accepts start (left/top) and end (right/bottom) action panes.\n* Can be dismissed.\n* 4 built-in action panes.\n* 2 built-in slide action widgets.\n* 1 built-in dismiss animation.\n* You can easily create custom layouts and animations.\n* You can use a builder to create your slide actions if you want special effects during animation.\n* Closes when a slide action has been tapped (overridable).\n* Closes when the nearest `Scrollable` starts to scroll (overridable).\n* Option to disable the slide effect easily.\n\n## Install\n\nIn the `pubspec.yaml` of your flutter project, add the following dependency:\n\n```yaml\ndependencies:\n  flutter_slidable: \u003clatest_version\u003e\n```\n\nIn your library add the following import:\n\n```dart\nimport 'package:flutter_slidable/flutter_slidable.dart';\n```\n\n## Getting started\n\nExample:\n\n```dart\nSlidable(\n  // Specify a key if the Slidable is dismissible.\n  key: const ValueKey(0),\n\n  // The start action pane is the one at the left or the top side.\n  startActionPane: ActionPane(\n    // A motion is a widget used to control how the pane animates.\n    motion: const ScrollMotion(),\n\n    // A pane can dismiss the Slidable.\n    dismissible: DismissiblePane(onDismissed: () {}),\n\n    // All actions are defined in the children parameter.\n    children: const [\n      // A SlidableAction can have an icon and/or a label.\n      SlidableAction(\n        onPressed: doNothing,\n        backgroundColor: Color(0xFFFE4A49),\n        foregroundColor: Colors.white,\n        icon: Icons.delete,\n        label: 'Delete',\n      ),\n      SlidableAction(\n        onPressed: doNothing,\n        backgroundColor: Color(0xFF21B7CA),\n        foregroundColor: Colors.white,\n        icon: Icons.share,\n        label: 'Share',\n      ),\n    ],\n  ),\n\n  // The end action pane is the one at the right or the bottom side.\n  endActionPane: const ActionPane(\n    motion: ScrollMotion(),\n    children: [\n      SlidableAction(\n        // An action can be bigger than the others.\n        flex: 2,\n        onPressed: doNothing,\n        backgroundColor: Color(0xFF7BC043),\n        foregroundColor: Colors.white,\n        icon: Icons.archive,\n        label: 'Archive',\n      ),\n      SlidableAction(\n        onPressed: doNothing,\n        backgroundColor: Color(0xFF0392CF),\n        foregroundColor: Colors.white,\n        icon: Icons.save,\n        label: 'Save',\n      ),\n    ],\n  ),\n\n  // The child of the Slidable is what the user sees when the\n  // component is not dragged.\n  child: const ListTile(title: Text('Slide me')),\n),\n```\n\n## Motions\n\nAny `ActionPane` has a motion parameter which allow you to define how the pane animates when the user drag the `Slidable`.\n\n### Behind Motion\n\nThe actions appear as if they where behind the `Slidable`:\n\n![Behind Motion][behind_motion]\n\n### Drawer Motion\n\nAnimate the actions as if they were drawers, when the `Slidable` is moving:\n\n![Drawer Motion][drawer_motion]\n\n### Scroll Motion\n\nThe actions follow the `Slidable` while it's moving:\n\n![Scroll Motion][scroll_motion]\n\n### Stretch Motion\n\nAnimate the actions as if they were streched while the `Slidable` is moving:\n\n![Stretch Motion][stretch_motion]\n\n### Controller\n\nYou can use ```SlidableController``` to open or close the actions programmatically:\n\n```dart\nfinal controller = SlidableController();\n\n// ...\n\nSlidable(\n  controller: controller,\n  // ...\n);\n\n// ...\n\n// Open the actions\nvoid _handleOpen() {\n  controller.openEndActionPane();\n  // OR\n  //controller.openStartActionPane();\n}\n\nvoid _handleOpen() {\n  controller.close();\n}\n```\n\n## FAQ\n\nYou can read the FAQ here: https://github.com/letsar/flutter_slidable/wiki/FAQ\n\n## Sponsoring\n\nI'm working on my packages on my free-time, but I don't have as much time as I would. If this package or any other package I created is helping you, please consider to sponsor me so that I can take time to read the issues, fix bugs, merge pull requests and add features to these packages.\n\n## Contributions\n\nFeel free to contribute to this project.\n\nIf you find a bug or want a feature, but don't know how to fix/implement it, please fill an [issue][issue].  \nIf you fixed a bug or implemented a feature, please send a [pull request][pr].\n\n\u003c!-- Links --\u003e\n[github_action_badge]: https://github.com/letsar/flutter_slidable/workflows/Build/badge.svg\n[github_action]: https://github.com/letsar/flutter_slidable/actions\n[pub_badge]: https://img.shields.io/pub/v/flutter_slidable.svg\n[pub]: https://pub.dartlang.org/packages/flutter_slidable\n[codecov]: https://codecov.io/gh/letsar/flutter_slidable\n[codecov_badge]: https://codecov.io/gh/letsar/flutter_slidable/branch/main/graph/badge.svg\n[buy_me_a_coffee]: https://www.buymeacoffee.com/romainrastel\n[buy_me_a_coffee_badge]: https://img.buymeacoffee.com/button-api/?text=Donate\u0026emoji=\u0026slug=romainrastel\u0026button_colour=29b6f6\u0026font_colour=000000\u0026font_family=Cookie\u0026outline_colour=000000\u0026coffee_colour=FFDD00\n[flutter_favorite_badge]: https://raw.githubusercontent.com/letsar/flutter_slidable/assets/flutter_favorite.png\n[flutter_favorite]: https://flutter.dev/docs/development/packages-and-plugins/favorites\n[behind_motion]: https://raw.githubusercontent.com/letsar/flutter_slidable/assets/behind_motion.gif\n[drawer_motion]: https://raw.githubusercontent.com/letsar/flutter_slidable/assets/drawer_motion.gif\n[scroll_motion]: https://raw.githubusercontent.com/letsar/flutter_slidable/assets/scroll_motion.gif\n[stretch_motion]: https://raw.githubusercontent.com/letsar/flutter_slidable/assets/stretch_motion.gif\n[issue]: https://github.com/letsar/flutter_slidable/issues\n[pr]: https://github.com/letsar/flutter_slidable/pulls\n","funding_links":["https://github.com/sponsors/letsar","https://patreon.com/romainrastel","https://www.buymeacoffee.com/romainrastel","paypal.me/RomainRastel","https://img.buymeacoffee.com/button-api/?text=Donate\u0026emoji=\u0026slug=romainrastel\u0026button_colour=29b6f6\u0026font_colour=000000\u0026font_family=Cookie\u0026outline_colour=000000\u0026coffee_colour=FFDD00"],"categories":["Components","组件","Dart","UI [🔝](#readme)","Packages"],"sub_categories":["UI"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsar%2Fflutter_slidable","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fletsar%2Fflutter_slidable","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fletsar%2Fflutter_slidable/lists"}