{"id":13465494,"url":"https://github.com/hnvn/flutter_flip_panel","last_synced_at":"2025-04-04T08:05:54.047Z","repository":{"id":37381948,"uuid":"137854337","full_name":"hnvn/flutter_flip_panel","owner":"hnvn","description":"A package for flip panel with built-in animation","archived":false,"fork":false,"pushed_at":"2022-04-02T07:24:43.000Z","size":1164,"stargazers_count":613,"open_issues_count":16,"forks_count":84,"subscribers_count":21,"default_branch":"master","last_synced_at":"2025-03-28T07:04:33.871Z","etag":null,"topics":["animation-3d","dart","flutter"],"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/hnvn.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-06-19T07:15:27.000Z","updated_at":"2025-02-16T10:21:23.000Z","dependencies_parsed_at":"2022-08-03T02:30:12.277Z","dependency_job_id":null,"html_url":"https://github.com/hnvn/flutter_flip_panel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnvn%2Fflutter_flip_panel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnvn%2Fflutter_flip_panel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnvn%2Fflutter_flip_panel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hnvn%2Fflutter_flip_panel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hnvn","download_url":"https://codeload.github.com/hnvn/flutter_flip_panel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247141761,"owners_count":20890650,"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":["animation-3d","dart","flutter"],"created_at":"2024-07-31T15:00:31.191Z","updated_at":"2025-04-04T08:05:54.025Z","avatar_url":"https://github.com/hnvn.png","language":"Dart","funding_links":[],"categories":["Components","Dart","组件","UI [🔝](#readme)"],"sub_categories":["UI"],"readme":"# Flip Panel\n\n[![pub package](https://img.shields.io/pub/v/flip_panel.svg)](https://pub.dartlang.org/packages/flip_panel) ![](https://github.com/hnvn/flutter_flip_panel/workflows/unit%20test/badge.svg)\n\nA package for flip panel with built-in animation\n\n\u003cp\u003e\n\t\u003cimg src=\"https://github.com/hnvn/flutter_flip_panel/blob/master/screenshots/flip_image.gif?raw=true\" width=\"250\" height=\"443\"  /\u003e\n\t\u003cimg src=\"https://github.com/hnvn/flutter_flip_panel/blob/master/screenshots/flip_clock.gif?raw=true\" width=\"250\" height=\"443\" /\u003e\n\u003c/p\u003e\n\n## How to use\n\n````dart\nimport 'package:flip_panel/flip_panel.dart';\n````\n\nCreate a flip panel from iterable source:\n\n````dart\nfinal digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];\n\nFlipPanel.builder(\n    itemBuilder: (context, index) =\u003e Container(\n       color: Colors.black,\n       padding: const EdgeInsets.symmetric(horizontal: 6.0),\n       child: Text(\n         '${digits[index]}',\n         style: TextStyle(\n             fontWeight: FontWeight.bold,\n             fontSize: 50.0,\n             color: Colors.white),\n       ),\n     ),\n    itemsCount: digits.length,\n    period: const Duration(milliseconds: 1000),\n    loop: 1,\n)\n````\n\nCreate a flip panel from stream source:\n\n````dart\nFlipPanel\u003cint\u003e.stream(\n      itemStream: Stream.periodic(Duration(milliseconds: 1000), (count) =\u003e count % 10),\n      itemBuilder: (context, value) =\u003e Container(\n        color: Colors.black,\n        padding: const EdgeInsets.symmetric(horizontal: 6.0),\n        child: Text(\n          '$value',\n          style: TextStyle(\n            fontWeight: FontWeight.bold,\n            fontSize: 50.0,\n            color: Colors.white\n          ),\n        ),\n      ),\n      initValue: 0,\n  );\n\n````\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhnvn%2Fflutter_flip_panel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhnvn%2Fflutter_flip_panel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhnvn%2Fflutter_flip_panel/lists"}