{"id":13550285,"url":"https://github.com/fluttercommunity/flutter_sticky_headers","last_synced_at":"2025-05-15T14:08:44.478Z","repository":{"id":37677408,"uuid":"132365074","full_name":"fluttercommunity/flutter_sticky_headers","owner":"fluttercommunity","description":"Flutter Sticky Headers - Lets you place \"sticky headers\" into any scrollable content in your Flutter app. No special wrappers or magic required. Maintainer: @slightfoot","archived":false,"fork":false,"pushed_at":"2024-03-15T01:58:50.000Z","size":24815,"stargazers_count":1110,"open_issues_count":43,"forks_count":130,"subscribers_count":16,"default_branch":"master","last_synced_at":"2025-01-01T04:02:43.611Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://pub.dev/packages/sticky_headers","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/fluttercommunity.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":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-06T18:26:54.000Z","updated_at":"2024-12-26T03:21:40.000Z","dependencies_parsed_at":"2024-06-18T12:39:37.028Z","dependency_job_id":"1469c7c0-f91c-4892-b773-29cb69e10422","html_url":"https://github.com/fluttercommunity/flutter_sticky_headers","commit_stats":{"total_commits":25,"total_committers":3,"mean_commits":8.333333333333334,"dds":0.12,"last_synced_commit":"0a3239f64139164115a49beb3a25ceeb85e2daf6"},"previous_names":["slightfoot/flutter_sticky_headers"],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercommunity%2Fflutter_sticky_headers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercommunity%2Fflutter_sticky_headers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercommunity%2Fflutter_sticky_headers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fluttercommunity%2Fflutter_sticky_headers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fluttercommunity","download_url":"https://codeload.github.com/fluttercommunity/flutter_sticky_headers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254355335,"owners_count":22057354,"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":[],"created_at":"2024-08-01T12:01:31.120Z","updated_at":"2025-05-15T14:08:39.469Z","avatar_url":"https://github.com/fluttercommunity.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"\n[![Flutter Community: sticky_headers](https://fluttercommunity.dev/_github/header/sticky_headers)](https://github.com/fluttercommunity/community)\n\n# Flutter Sticky Headers\n\n[![pub package](https://img.shields.io/pub/v/sticky_headers.svg)](https://pub.dartlang.org/packages/sticky_headers)\n\nLets you place headers on scrollable content that will stick to the top of the container\nwhilst the content is scrolled.\n\n## Usage\nYou can place a `StickyHeader` or `StickyHeaderBuilder`\ninside any scrollable content, such as:  `ListView`, `GridView`, `CustomScrollView`,\n`SingleChildScrollView` or similar.\n\nDepend on it:\n```yaml\ndependencies:\n  sticky_headers: \"^0.3.0\"\n```\n\nImport it:\n```dart\nimport 'package:sticky_headers/sticky_headers.dart';\n```\n\nUse it:\n```dart\nclass Example extends StatelessWidget {\n  @override\n  Widget build(BuildContext context) {\n    return ListView.builder(itemBuilder: (context, index) {\n      return StickyHeader(\n        header: Container(\n          height: 50.0,\n          color: Colors.blueGrey[700],\n          padding: EdgeInsets.symmetric(horizontal: 16.0),\n          alignment: Alignment.centerLeft,\n          child: Text('Header #$index',\n            style: const TextStyle(color: Colors.white),\n          ),\n        ),\n        content: Container(\n          child: Image.network(\n            imageForIndex(index), \n            fit: BoxFit.cover,\n            width: double.infinity, \n            height: 200.0,\n          ),\n        ),\n      );\n    });\n  }\n}\n```\n\n\n## Examples\n\n### Example 1 - Headers and Content\n![Demo 1](https://github.com/slightfoot/flutter_sticky_headers/raw/gh-pages/demo1.gif)\n\n### Example 2 - Animated Headers with Content\n![Demo 2](https://github.com/slightfoot/flutter_sticky_headers/raw/gh-pages/demo2.gif)\n\n### Example 3 - Headers overlapping the Content\n![Demo 3](https://github.com/slightfoot/flutter_sticky_headers/raw/gh-pages/demo3.gif)\n\n## Bugs/Requests\nIf you encounter any problems feel free to open an issue. If you feel the library is\nmissing a feature, please raise a ticket on Github and I'll look into it.\nPull request are also welcome.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercommunity%2Fflutter_sticky_headers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffluttercommunity%2Fflutter_sticky_headers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffluttercommunity%2Fflutter_sticky_headers/lists"}