{"id":32290525,"url":"https://github.com/frederickcxa/conditional-builder","last_synced_at":"2026-01-11T04:38:47.318Z","repository":{"id":48055765,"uuid":"178783389","full_name":"frederickcxa/conditional-builder","owner":"frederickcxa","description":"Synchronous conditional widget renderer for Flutter :fire:","archived":false,"fork":false,"pushed_at":"2021-08-09T17:21:14.000Z","size":10,"stargazers_count":14,"open_issues_count":2,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T02:53:04.354Z","etag":null,"topics":["android","dart","declarative-ui","flutter","ios"],"latest_commit_sha":null,"homepage":"","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/frederickcxa.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":"2019-04-01T04:05:17.000Z","updated_at":"2023-10-16T06:28:05.000Z","dependencies_parsed_at":"2022-08-12T17:40:20.319Z","dependency_job_id":null,"html_url":"https://github.com/frederickcxa/conditional-builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/frederickcxa/conditional-builder","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frederickcxa%2Fconditional-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frederickcxa%2Fconditional-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frederickcxa%2Fconditional-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frederickcxa%2Fconditional-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/frederickcxa","download_url":"https://codeload.github.com/frederickcxa/conditional-builder/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/frederickcxa%2Fconditional-builder/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280551635,"owners_count":26349597,"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","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["android","dart","declarative-ui","flutter","ios"],"created_at":"2025-10-23T02:53:05.252Z","updated_at":"2025-10-23T02:53:06.489Z","avatar_url":"https://github.com/frederickcxa.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ConditionalBuilder\n\nSynchronous conditional widget renderer.\n\nLets you declaratively render a widget based on a condition, using this you can get rid of\nimplicit conditional statements in your code to display/hide a widget.\n\n## Usage\n\nAfter following the installation guide, you can use this widget as follow:\n\n```dart\nConditionalBuilder(\n  condition: true,\n  builder: (context) {\n    return Text('This gets rendered');\n  },\n )\n\nConditionalBuilder(\n  condition: false,\n  builder: (context) {\n    return Text('This does not get rendered, an empty Container will be rendered');\n  },\n)\n\nConditionalBuilder(\n  condition: false,\n  builder: (context) {\n    return Text('This does not get rendered, as fallback is not null, it is used to render the fallback widget.');\n  },\n  fallback: (context) {\n    return Text('This gets rendered');\n  }\n)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrederickcxa%2Fconditional-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffrederickcxa%2Fconditional-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffrederickcxa%2Fconditional-builder/lists"}