{"id":18048836,"url":"https://github.com/marcelgarus/banners","last_synced_at":"2025-04-10T09:53:29.837Z","repository":{"id":61972732,"uuid":"256757122","full_name":"MarcelGarus/banners","owner":"MarcelGarus","description":"Flutter package for dynamically displaying global banners at the top of the screen.","archived":false,"fork":false,"pushed_at":"2022-05-12T18:56:19.000Z","size":107,"stargazers_count":1,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T08:47:54.642Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/MarcelGarus.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":"2020-04-18T13:11:55.000Z","updated_at":"2022-05-12T18:54:15.000Z","dependencies_parsed_at":"2022-10-24T13:15:31.393Z","dependency_job_id":null,"html_url":"https://github.com/MarcelGarus/banners","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/MarcelGarus%2Fbanners","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcelGarus%2Fbanners/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcelGarus%2Fbanners/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcelGarus%2Fbanners/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcelGarus","download_url":"https://codeload.github.com/MarcelGarus/banners/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248198260,"owners_count":21063626,"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-10-30T20:15:34.296Z","updated_at":"2025-04-10T09:53:29.807Z","avatar_url":"https://github.com/MarcelGarus.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"Often, you want to be able to dynamically display banners at the top of the screen.\nThis package offers this functionality.\n\n## How to use\n\n### Create banners\n\nCreate some banner `Widget`s.\nUse the `BannerScaffold` for automatically setting a color and respecting the status bar padding.\n\n```dart\n/// Indicates the user is using a demo account.\nclass DemoBanner extends StatelessWidget {\n  Key get key =\u003e ValueKey('demo');\n\n  @override\n  Widget build(BuildContext context) {\n    return BannerScaffold(\n      backgroundColor: Colors.yellow,\n      body: Padding(\n        padding: EdgeInsets.all(8),\n        child: Text('This is a demo account.'),\n      ),\n    );\n  }\n}\n```\n\n### Use banners\n\nWrap a widget with `Bannered` and provide the banner widgets. The `MediaQuery`'s `padding` will be adjusted correctly.\n\n```dart\nreturn Bannered(\n  banners: [\n    // Some banner widgets.\n  ],\n  child: Scaffold(...),\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelgarus%2Fbanners","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcelgarus%2Fbanners","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcelgarus%2Fbanners/lists"}