{"id":17982395,"url":"https://github.com/nekocode/drag-down-to-pop-flutter","last_synced_at":"2025-07-05T02:35:24.332Z","repository":{"id":46653641,"uuid":"216234785","full_name":"nekocode/drag-down-to-pop-flutter","owner":"nekocode","description":"A page transition which supports drag-down-to-pop gesture.","archived":false,"fork":false,"pushed_at":"2021-10-01T13:34:10.000Z","size":276,"stargazers_count":17,"open_issues_count":3,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-06T09:46:35.167Z","etag":null,"topics":["flutter","widget"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nekocode.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-19T16:17:37.000Z","updated_at":"2023-10-23T14:40:13.000Z","dependencies_parsed_at":"2022-08-12T13:00:41.355Z","dependency_job_id":null,"html_url":"https://github.com/nekocode/drag-down-to-pop-flutter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nekocode/drag-down-to-pop-flutter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2Fdrag-down-to-pop-flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2Fdrag-down-to-pop-flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2Fdrag-down-to-pop-flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2Fdrag-down-to-pop-flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nekocode","download_url":"https://codeload.github.com/nekocode/drag-down-to-pop-flutter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nekocode%2Fdrag-down-to-pop-flutter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263671820,"owners_count":23494045,"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":["flutter","widget"],"created_at":"2024-10-29T18:14:09.175Z","updated_at":"2025-07-05T02:35:24.310Z","avatar_url":"https://github.com/nekocode.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# drag_down_to_pop\n\n[![build status](https://api.travis-ci.com/nekocode/drag-down-to-pop-flutter.svg)](https://travis-ci.com/nekocode/drag-down-to-pop-flutter) [![pub package](https://img.shields.io/pub/v/drag_down_to_pop.svg)](https://pub.dev/packages/drag_down_to_pop)\n\nA page transition which supports drag-down-to-pop gesture. The main source code is copied from the [cupertino/route.dart](https://github.com/flutter/flutter/blob/master/packages/flutter/lib/src/cupertino/route.dart) in Flutter SDK with some modifications.\n\n\u003ckbd\u003e\u003cimg border=\"1\" src=\"https://github.com/nekocode/drag-down-to-pop-flutter/blob/master/image/preview.gif?raw=true\"\u003e\u003c/img\u003e\u003c/kbd\u003e\n\n## Simplest Usage\n\nCreate a new `PageRoute` to use this page transiaction.\n\n```dart\nimport 'package:drag_down_to_pop/drag_down_to_pop.dart';\n\nclass ImageViewerPageRoute extends MaterialPageRoute {\n  ImageViewerPageRoute({@required WidgetBuilder builder})\n      : super(builder: builder);\n\n  @override\n  Widget buildTransitions(BuildContext context, Animation\u003cdouble\u003e animation,\n      Animation\u003cdouble\u003e secondaryAnimation, Widget child) {\n    return const DragDownToPopPageTransitionsBuilder()\n        .buildTransitions(this, context, animation, secondaryAnimation, child);\n  }\n}\n\n// Push to a new page using ImageViewerPageRoute\nNavigator.push(\n  context,\n  ImageViewerPageRoute(builder: (context) =\u003e ImageViewerPage()),\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekocode%2Fdrag-down-to-pop-flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnekocode%2Fdrag-down-to-pop-flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnekocode%2Fdrag-down-to-pop-flutter/lists"}