{"id":13551509,"url":"https://github.com/pulyaevskiy/parallax-image","last_synced_at":"2025-04-06T10:14:12.257Z","repository":{"id":47491435,"uuid":"122121080","full_name":"pulyaevskiy/parallax-image","owner":"pulyaevskiy","description":"A Flutter widget that paints an image and moves it at a slower speed than the main scrolling content.","archived":false,"fork":false,"pushed_at":"2022-08-17T14:28:58.000Z","size":5920,"stargazers_count":278,"open_issues_count":6,"forks_count":31,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-30T09:07:57.008Z","etag":null,"topics":["dartlang","flutter","parallax-scrolling"],"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/pulyaevskiy.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-02-19T21:10:35.000Z","updated_at":"2024-11-02T04:03:15.000Z","dependencies_parsed_at":"2022-09-20T22:02:16.578Z","dependency_job_id":null,"html_url":"https://github.com/pulyaevskiy/parallax-image","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/pulyaevskiy%2Fparallax-image","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pulyaevskiy%2Fparallax-image/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pulyaevskiy%2Fparallax-image/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pulyaevskiy%2Fparallax-image/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pulyaevskiy","download_url":"https://codeload.github.com/pulyaevskiy/parallax-image/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247464225,"owners_count":20942970,"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":["dartlang","flutter","parallax-scrolling"],"created_at":"2024-08-01T12:01:49.629Z","updated_at":"2025-04-06T10:14:12.236Z","avatar_url":"https://github.com/pulyaevskiy.png","language":"Dart","funding_links":[],"categories":["Components","组件","Dart","Image [🔝](#readme)"],"sub_categories":["Image","图片"],"readme":"A Flutter widget that paints an image and moves it at a slower speed than the \nmain scrolling content.\n\n![demo.gif](demo.gif)\n\n## Installation\n\nAdd dependency to your `pubspec.yaml`:\n\n```yaml\ndependencies:\n  parallax_image: [latest version]\n```\n\n## Usage\n\n`ParallaxImage` can be used with any `Scrollable` (`ListView` for instance).\nWhen created, it subscribes to scroll updates on nearest `Scrollable` ancestor.\nIt is also possible to specify custom `ScrollController` in which case this\nwidget subscribes to updates on `ScrollController.position` (assumes that\ncontroller is attached to only one `Scrollable`).\n\n```dart\nclass MyWidget extends StatefulWidget {\n  @override\n  MyWidgetState createState() =\u003e new MyWidgetState();\n}\n\nclass MyWidgetState extends State\u003cMyWidget\u003e {\n  final _controller = new ScrollController();\n\n  @override\n  Widget build(BuildContext context) {\n    return new ListView(controller: _controller, children: [\n      new ParallaxImage(\n        image: new AssetImage('images/january.jpg'),\n        // Extent of this widget in scroll direction.\n        // In this case it is vertical scroll so extent defines\n        // the height of this widget.\n        // The image is scaled with BoxFit.fitWidth which makes it\n        // occupy full width of this widget.\n        // After image is scaled it should normally have height greater\n        // than this value to allow for parallax effect to be\n        // visible.\n        extent: 100.0,\n        // Optionally specify child widget.\n        child: new Text('January'),\n        // Optinally specify scroll controller.\n        controller: _controller,\n      ),\n      // ...add more list items\n    ]);\n  }\n}\n```\n\nSee `example/` folder for a complete demo.\n\n## Features and bugs\n\nPlease file feature requests and bugs at the [issue tracker][issue_tracker].\n\n[issue_tracker]: https://github.com/pulyaevskiy/parallax-image/issues\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpulyaevskiy%2Fparallax-image","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpulyaevskiy%2Fparallax-image","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpulyaevskiy%2Fparallax-image/lists"}