{"id":13790226,"url":"https://github.com/best-flutter/transformer_page_view","last_synced_at":"2025-04-04T19:13:47.822Z","repository":{"id":52266801,"uuid":"146698658","full_name":"best-flutter/transformer_page_view","owner":"best-flutter","description":"PageTransformer for flutter","archived":false,"fork":false,"pushed_at":"2023-11-29T20:45:32.000Z","size":2440,"stargazers_count":520,"open_issues_count":38,"forks_count":149,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-28T18:15:29.197Z","etag":null,"topics":["animation","flutter","flutter-package","pageview","parallax","transformer"],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/best-flutter.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-08-30T05:11:49.000Z","updated_at":"2025-02-27T10:36:03.000Z","dependencies_parsed_at":"2024-04-02T12:54:53.996Z","dependency_job_id":"93e3143e-e15d-4228-ab71-45cf6e3df63b","html_url":"https://github.com/best-flutter/transformer_page_view","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/best-flutter%2Ftransformer_page_view","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-flutter%2Ftransformer_page_view/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-flutter%2Ftransformer_page_view/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/best-flutter%2Ftransformer_page_view/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/best-flutter","download_url":"https://codeload.github.com/best-flutter/transformer_page_view/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247234923,"owners_count":20905854,"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","flutter","flutter-package","pageview","parallax","transformer"],"created_at":"2024-08-03T22:00:39.151Z","updated_at":"2025-04-04T19:13:47.807Z","avatar_url":"https://github.com/best-flutter.png","language":"Dart","funding_links":[],"categories":["Packages"],"sub_categories":[],"readme":"\n\u003cp align=\"center\"\u003e\n    \u003ca href=\"https://travis-ci.org/best-flutter/transformer_page_view\"\u003e\n        \u003cimg src=\"https://travis-ci.org/best-flutter/transformer_page_view.svg?branch=master\" alt=\"Build Status\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/best-flutter/transformer_page_view/pulls\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/PRs-Welcome-brightgreen.svg\" alt=\"PRs Welcome\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://pub.dartlang.org/packages/transformer_page_view\"\u003e\n        \u003cimg src=\"https://img.shields.io/pub/v/transformer_page_view.svg\" alt=\"pub package\" /\u003e\n    \u003c/a\u003e\n    \n\u003c/p\u003e\n\n# transformer_page_view\n\nPageTransformer for flutter\n\n\n## Very simple to use\n\n\n```\nimport 'package:transformer_page_view/transformer_page_view.dart';\n\n...\n\nnew TransformerPageView(\nloop: true,\ntransformer: new AccordionTransformer(),\nitemBuilder: (BuildContext context, int index) {\n  return new Container(\n    color: list[index%list.length],\n    child: new Center(\n      child: new Text(\"$index\",style: new TextStyle(fontSize: 80.0,color: Colors.white),),\n    ),\n  );\n},\nitemCount: 3)\n```\n\nAlmost the same as PageView.builder, simplely specify a `transformer` to `TransformerPageView`, \n    which is a sub class of `PageTransformer`\n\n\n## Show cases\n\n### Parallax\n\n![Welcome view](https://github.com/jzoom/images/raw/master/welcome.gif)\n\n\n### Basic\n\n![AccordionTransformer](https://github.com/jzoom/images/raw/master/AccordionTransformer.gif)\n\n\u003eSee code [here](https://github.com/best-flutter/transformer_page_view/blob/master/example/lib/AccordionTransformer.dart)\n\n![ThreeDTransformer](https://github.com/jzoom/images/raw/master/ThreeDTransformer.gif)\n\n\u003eSee code [here](https://github.com/best-flutter/transformer_page_view/blob/master/example/lib/ThreeDTransformer.dart)\n\n\n![ScaleAndFadeTransformer](https://github.com/jzoom/images/raw/master/ScaleAndFadeTransformer.gif)\n\n\u003eSee code [here](https://github.com/best-flutter/transformer_page_view/blob/master/example/lib/ScaleAndFadeTransformers.dart)\n\n\n![ZoomInPageTransformer](https://github.com/jzoom/images/raw/master/ZoomInPageTransformer.gif)\n\n\u003eSee code [here](https://github.com/best-flutter/transformer_page_view/blob/master/example/lib/ZoomInPageTransformer.dart)\n\n\n![ZoomOutPageTransformer](https://github.com/jzoom/images/raw/master/ZoomOutPageTransformer.gif)\n\n\u003eSee code [here](https://github.com/best-flutter/transformer_page_view/blob/master/example/lib/ZoomOutPageTransformer.dart)\n\n\n![DepthPageTransformer](https://github.com/jzoom/images/raw/master/DepthPageTransformer.gif)\n\n\u003eSee code [here](https://github.com/best-flutter/transformer_page_view/blob/master/example/lib/DepthPageTransformers.dart)\n\n\n\n\n\n## Getting Started\n\n- [Installation](#installation)\n- [Basic Usage](#basic-usage)\n- [Build-in Parallax](#build-in-parallax)\n- [Custom animation](#custom-animation)\n\n\n### Installation\n\nAdd \n\n```bash\n\ntransformer_page_view:\n\n```\nto your pubspec.yaml ,and run \n\n```bash\nflutter packages get \n```\nin your project's root directory.\n\n\n### Basic Usage\n\n\n| Parameter  | Default   | Description |\n| :------------ |:---------------:| :-----|\n| scrollDirection | Axis.horizontal  | If `Axis.horizontal`, the scroll view's children are arranged horizontally in a row instead of vertically in a column. |\n| loop | false |Set to `true` to enable continuous loop mode. |\n| index | none |  Index number of initial slide. if not set , it is controlled by the widget itself,otherwise, it is controlled by another widget, which is returned by `itemBuilder`|\n| onPageChanged | void onPageChanged(int index)  | Called with the new index when the user swiped |\n| duration | new Duration(milliseconds:300) | The milliseconds of every transaction animation costs  |\n| transformer | none | The most important property of this widget, it returns a `transformed` widget that based on the widget parameter. If the value is null, a `itemBuilder` must be specified |\n| itemCount | none | Number of the total items  |\n| itemBuilder | none | A function that returns a widget based on index,if it's null,a `transformer` must be specified |\n\n\n### Build-in Parallax\n\nWe provide 3 build-in parallaxes, which handle color、image and container\n\n\u003e ParallaxColor\n\nParallaxColor handles the color transform, which controls the color transform from one to another. \n\n\u003e ParallaxImage\n\nParallaxImage handles the image, which speed is slower than the `PageView`\n\n\u003e ParallaxContainer\n\nParallaxContainer handles the text or other staff, which speed is faster than the `PageView`\n\n3 build-in parallaxes are all used in subclass of `PageTransform`,group these parallaxes together, we can create very cool things.\n\n![](https://github.com/jzoom/images/raw/master/beauty.gif)\n\nInspired by [page-transformer](https://github.com/roughike/page-transformer), and we have an easier way to create this.\n\n\u003eSee code [here](https://github.com/best-flutter/transformer_page_view/blob/master/example/lib/images.dart)\n\n### Custom animation\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbest-flutter%2Ftransformer_page_view","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbest-flutter%2Ftransformer_page_view","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbest-flutter%2Ftransformer_page_view/lists"}