{"id":21486138,"url":"https://github.com/felipecastrosales/flutter_composition","last_synced_at":"2026-04-29T16:05:11.578Z","repository":{"id":64084186,"uuid":"573209099","full_name":"felipecastrosales/flutter_composition","owner":"felipecastrosales","description":"🧪 POC creating class and subclasses with Flutter \u0026 Dart","archived":false,"fork":false,"pushed_at":"2022-12-04T13:43:20.000Z","size":292,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T12:39:16.021Z","etag":null,"topics":["app","composition","counter","dart","flutter","flutter-apps","flutter-demo","flutter-examples","flutter-poc","inheritance-examples","inherited","medium","poc","stackoverflow"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/felipecastrosales.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-12-01T23:45:40.000Z","updated_at":"2023-01-27T17:14:59.000Z","dependencies_parsed_at":"2022-12-06T11:00:38.585Z","dependency_job_id":null,"html_url":"https://github.com/felipecastrosales/flutter_composition","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/felipecastrosales/flutter_composition","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipecastrosales%2Fflutter_composition","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipecastrosales%2Fflutter_composition/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipecastrosales%2Fflutter_composition/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipecastrosales%2Fflutter_composition/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felipecastrosales","download_url":"https://codeload.github.com/felipecastrosales/flutter_composition/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felipecastrosales%2Fflutter_composition/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32432919,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T13:34:34.882Z","status":"ssl_error","status_checked_at":"2026-04-29T13:34:29.830Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["app","composition","counter","dart","flutter","flutter-apps","flutter-demo","flutter-examples","flutter-poc","inheritance-examples","inherited","medium","poc","stackoverflow"],"created_at":"2024-11-23T13:19:19.046Z","updated_at":"2026-04-29T16:05:11.545Z","avatar_url":"https://github.com/felipecastrosales.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Composition with Flutter\n\nIn Flutter, **Composition** is preferred over **Inheritence**.\n\nResearching how to flow classes and subclasses with Flutter, I found some interesting content and decided to test some flows in practice.\n\nSee come cool links below: \n\n* [Subclass a class that extends StatelessWidget or StatefulWidget class](https://stackoverflow.com/questions/51476234/subclass-a-class-that-extends-statelesswidget-or-statefulwidget-class)\n  * [I decided to test this approach, as it was a little more off the curve](https://stackoverflow.com/a/62856604/13096514).\n* But there are other interesting strategies that I haven't tried. Such as: \n  * [Creating a Base Screen in Flutter using an abstract class and mixin](https://pbhoomi190.medium.com/creating-a-base-screen-in-flutter-using-an-abstract-class-and-mixin-3c0001b74c8c).\n  * [Flutter mixin with abstract class](https://stackoverflow.com/questions/59316554/flutter-mixin-with-abstract-class).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipecastrosales%2Fflutter_composition","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelipecastrosales%2Fflutter_composition","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelipecastrosales%2Fflutter_composition/lists"}