{"id":13465515,"url":"https://github.com/ariedov/flutter_snaplist","last_synced_at":"2026-02-21T16:02:05.255Z","repository":{"id":38205752,"uuid":"153690807","full_name":"ariedov/flutter_snaplist","owner":"ariedov","description":"A small library for creating snapping lists.","archived":false,"fork":false,"pushed_at":"2021-03-20T12:32:47.000Z","size":99,"stargazers_count":457,"open_issues_count":15,"forks_count":52,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-11-01T23:01:55.653Z","etag":null,"topics":["android","awesome","bloc","dart","flutter","ios","mobile"],"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/ariedov.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":"2018-10-18T21:39:37.000Z","updated_at":"2025-10-07T21:07:11.000Z","dependencies_parsed_at":"2022-08-28T22:00:11.002Z","dependency_job_id":null,"html_url":"https://github.com/ariedov/flutter_snaplist","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/ariedov/flutter_snaplist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariedov%2Fflutter_snaplist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariedov%2Fflutter_snaplist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariedov%2Fflutter_snaplist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariedov%2Fflutter_snaplist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ariedov","download_url":"https://codeload.github.com/ariedov/flutter_snaplist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ariedov%2Fflutter_snaplist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29685032,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T15:51:39.154Z","status":"ssl_error","status_checked_at":"2026-02-21T15:49:03.425Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["android","awesome","bloc","dart","flutter","ios","mobile"],"created_at":"2024-07-31T15:00:31.464Z","updated_at":"2026-02-21T16:02:05.227Z","avatar_url":"https://github.com/ariedov.png","language":"Dart","funding_links":[],"categories":["Components","组件","UI [🔝](#readme)","Packages","Dart"],"sub_categories":["UI"],"readme":"[![awesome flutter](https://img.shields.io/badge/Awesome-Flutter-blue.svg?longCache=true\u0026style=flat-square)](https://stackoverflow.com/questions/tagged/flutter?sort=votes)\n[![pub package](https://img.shields.io/pub/v/snaplist.svg)](https://pub.dartlang.org/packages/snaplist)\n\n# snaplist\n\nA small cozy library that allows you to make snappable list views.\n\n**Issues and Pull Requests are really appreciated!**\n\nSnaplist supports different and even dynamically sized children to be listed and correctly snapped.\n\n## Showcase\n\n![Showscase gif](https://media.giphy.com/media/27bTHalyweVoc2psS2/giphy.gif)\n\n## Include to your project\n\nIn your `pubspec.yaml` root add:\n\n```yaml\ndependencies:\n  snaplist: ^0.1.8\n```\n\n## Include\n\nThe library does provide `StatefulWidget` which is called `SnapList`.\n\nInclude the widget like this:\n`import 'package:snaplist/snaplist.dart';`\n\n## Usage\n\nUse it as you'd use any widget:\n\n```dart\nWidget build(BuildContext context) {\n  return SnapList(\n    sizeProvider: (index, data) =\u003e Size(100.0, 100.0),\n    separatorProvider: (index, data) =\u003e Size(10.0, 10.0),\n    builder: (context, index, data) =\u003e SizedBox(),\n    count: 1,\n  );\n}\n```\n\nSnaplist uses gesture detection for swiping the list, so, please, be sure that the gestures you apply to the widgets inside are not overlapping for best user experience.\n\n## Properties\n\nThere are 4 required fields:\n\n- `sizeProvider` is a provider of each widget size. The library will wrap each built widget to a sized box of specified size. This is required so snapping calculations will work correctly.\n- `separatorProvider` is similar to `sizeProvider`, but this size will be used to build the list separators.\n- `builder` works like a regular `Flutter` builder all of us are familiar with. It will pass you the context, current item index and some additional data.\n- `count` - Children count as in a `ListView`.\n\nThe `data` which is provided to each provider and the builder is a combination of three fields:\n\n- `center` - is the position which is now displayed and referenced as the center widget.\n- `next` - is the position which the user is scrolling to. It is `-1` if idle.\n- `progress` - is the scroll and snip progress. The values are from `0` to `100`.\n\nSnaplist defaults to horizontal scrolling. You can set `axis` to Axis.vertical for vertical scrolling.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariedov%2Fflutter_snaplist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fariedov%2Fflutter_snaplist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fariedov%2Fflutter_snaplist/lists"}