{"id":13549944,"url":"https://github.com/ejprok/colorful_safe_area","last_synced_at":"2026-02-22T12:11:28.136Z","repository":{"id":51348138,"uuid":"252588018","full_name":"ejprok/colorful_safe_area","owner":"ejprok","description":"A replacement for Flutter's default SafeArea widget","archived":false,"fork":false,"pushed_at":"2023-03-17T06:22:37.000Z","size":782,"stargazers_count":32,"open_issues_count":1,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-12-04T15:50:55.860Z","etag":null,"topics":["dart","flutter","flutter-package","flutter-packages","safearea","widget"],"latest_commit_sha":null,"homepage":"","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/ejprok.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":"2020-04-02T23:35:57.000Z","updated_at":"2024-10-26T15:46:50.000Z","dependencies_parsed_at":"2024-03-16T22:57:55.773Z","dependency_job_id":null,"html_url":"https://github.com/ejprok/colorful_safe_area","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/ejprok%2Fcolorful_safe_area","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejprok%2Fcolorful_safe_area/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejprok%2Fcolorful_safe_area/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ejprok%2Fcolorful_safe_area/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ejprok","download_url":"https://codeload.github.com/ejprok/colorful_safe_area/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246910974,"owners_count":20853652,"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":["dart","flutter","flutter-package","flutter-packages","safearea","widget"],"created_at":"2024-08-01T12:01:27.319Z","updated_at":"2025-10-23T07:24:10.609Z","avatar_url":"https://github.com/ejprok.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"# ColorfulSafeArea\n\n[![Pub](https://img.shields.io/pub/v/colorful_safe_area.svg?style=flat-square)](https://pub.dev/packages/colorful_safe_area)\n\nA more customizable replacement for the ```SafeArea``` widget. It lets you set the color of your ```SafeArea``` without affecting the color of its child.  \n\n\u003cp align=\"center\"\u003e\n\u003cimg  src=\"assets/example.gif\" alt=\"Example of ColorfulSafeArea\"\u003e\n\u003c/p\u003e\n\nUse it just like a regular ```SafeArea``` widget.\n\n```dart\nScaffold(\n    body: ColorfulSafeArea(\n        child: SomeWidget(),\n    ),\n);\n```\n\n## Setting Color\n\nThe color of ```ColorfulSafeArea``` widgets are transparent by default. To change their color, set the ```color``` property.\n\n```dart\nScaffold(\n    body: ColorfulSafeArea(\n        color: Colors.red,\n        child: SomeWidget(),\n    ),\n);\n```\n\n## Using Transparent Colors\n\nYou can use any color that has transparency\n\n```dart\nScaffold(\n    body: ColorfulSafeArea(\n        color: Colors.red.withOpacity(0.7),\n        child: SomeWidget(),\n    ),\n);\n```\n\n## Overflow Rules\n\nIf you are using a transparent color and want the child of the ```ColorfulSafeArea``` to appear behind it, you can set ```overflowRules``` to define how the ```ColorfulSafeArea```'s child should appear.  The default value is ```OverflowRules.all(false)```.  The ```OverflowRules``` class works much like ```EdgeInsets```.\n\n```dart\n// allows the child to overflow behind all sides\noverflowRules: OverflowRules.all(true)\n\n// allows the child to overflow only on the left and bottom sides\noverflowRules: OverflowRules.only(left: true, bottom: true)\n\n// allows the child to overflow on the top and bottom\noverflowRules: OverflowRules.symmetric(vertical: true)\n```\n\n## Blurring Overflow Area\n\nIf you want to apply a blur effect to the ```ColorfulSafeArea```, you can apply a filter.\n\n```dart\nScaffold(\n    body: ColorfulSafeArea(\n        overflowRules: OverflowRules.all(true),\n        filter: ImageFilter.blur(sigmaX: 10, sigmaY: 10),\n        child: SomeWidget(),\n    ),\n);\n```\n\n## Making Overflow Area Interactive\n\nWhen you set ```overflowRules``` and would like for the parts of the child that have overflowed to be interactable behind the ```ColorfulSafeArea```, you can set ```overflowTappable``` to ```true```.  \n\n```dart\nScaffold(\n    body: ColorfulSafeArea(\n        overflowRules: OverflowRules.all(true),\n        overflowTappable: true\n        child: SomeWidget(),\n    ),\n);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejprok%2Fcolorful_safe_area","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fejprok%2Fcolorful_safe_area","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fejprok%2Fcolorful_safe_area/lists"}