Skip to content

Stop calling Flutter "functional" or "functional reactive" #11474

@wmleler

Description

@wmleler

Steps to Reproduce

Open https://flutter.io/widgets-intro/
Notice that the first line of text claims that Flutter is a "functional-reactive framework". And then immediately says things like "Widgets describe what their view should look like given their current configuration and state". That is not functional. Later, this page gives examples using stateful widgets, which are not functional. The only examples that are functional are the ones that have no state at all, and while constants are by definition functional, they aren't very interesting examples.

Just calling it a "reactive framework" would be fine.

Need to find all other places where we claim Flutter is functional and remove them. It isn't true, and even if it were, it doesn't help to call it functional and only invites arguments.

A bigger issue is why don't we have some examples that actually are functional reactive? Even the sample app (the counter) could be made to be functional. The FAB would produce a stream of events, and the text would display the output of a function that takes the stream as input and outputs (a stream of) the lengths of the input stream.

It would also be nice to have at least one example that uses RxDart.

As it is, Flutter seems to be strongly favoring stateful (non-functional) user interfaces. I'd really like to see a page that explains how to build a functional UI in Flutter.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions