{"id":17595381,"url":"https://github.com/davidmarne/functional_flutter","last_synced_at":"2025-02-28T04:19:09.283Z","repository":{"id":56830884,"uuid":"121991427","full_name":"davidmarne/functional_flutter","owner":"davidmarne","description":"Tools for composing flutter widget trees in a functional manner.","archived":false,"fork":false,"pushed_at":"2018-02-22T02:11:49.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-11T00:28:04.297Z","etag":null,"topics":["flutter","functional","functional-programming"],"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/davidmarne.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-18T21:15:55.000Z","updated_at":"2018-07-09T02:03:27.000Z","dependencies_parsed_at":"2022-09-09T20:01:52.667Z","dependency_job_id":null,"html_url":"https://github.com/davidmarne/functional_flutter","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/davidmarne%2Ffunctional_flutter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidmarne%2Ffunctional_flutter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidmarne%2Ffunctional_flutter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/davidmarne%2Ffunctional_flutter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/davidmarne","download_url":"https://codeload.github.com/davidmarne/functional_flutter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241100214,"owners_count":19909663,"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":["flutter","functional","functional-programming"],"created_at":"2024-10-22T07:57:04.676Z","updated_at":"2025-02-28T04:19:09.261Z","avatar_url":"https://github.com/davidmarne.png","language":"Dart","readme":"[![Pub](https://img.shields.io/pub/v/functional_flutter.svg)](https://pub.dartlang.org/packages/functional_flutter)\n[![codecov.io](http://codecov.io/github/davidmarne/functional_flutter/coverage.svg?branch=master)](http://codecov.io/github/davidmarne/functional_flutter?branch=master)\n\n# functional_flutter\n\nTools for composing flutter widget trees in a functional manner. Inspired by [recompose](https://github.com/acdlite/recompose).\n\n# Why\n\nYour widget tree should be a function of your applications state, so why would you write widgets as classes and not functions?\n\nfunctional_flutter encourages you to separate your state and properties from your widget definition. Rather than have a class that has properties and a build function implemented, you can lift the properties into a class and write `FunctionalWidgets` that take a properties class and return a widget.\n\nFollowing this pattern helps make your application easier to reason about and it decreases the amount of widgets in the tree.\n\nProperties should always be a value type. I suggest you leverage built_value or meta's @immutable annotation for your prop classes.\n\n# If everything is a pure functional widget how can my widgets have state\n\nThe withState widget enhancer lets you lift state into a functional wrapper. See the [example](/example/example.dart).\n\nThe withBuiltReduxStore enhancer also lets you subscribe to state\nfrom your built_redux store if you are using built_redux as a \nstate management solution.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidmarne%2Ffunctional_flutter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdavidmarne%2Ffunctional_flutter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdavidmarne%2Ffunctional_flutter/lists"}