When reading Flutter tutorial I see some resemblen...
# compose
r
When reading Flutter tutorial I see some resemblence to @Compose, is this because of Material pattern which both use or some other type of cooperation...?
i
Compose and Flutter both use a similar pattern for UI development. In fact, Compose has its origins in the Flutter codebase (I believe some of the Flutter code was actually re-used for Compose to begin with!). This pattern of declarative UI is now becoming quite popular across a variety of contexts. React (front-end Javascript library) is similar, and so is Swift UI (for iOS).
šŸ’” 1
a
yeah, pretty much the above. The teams keep pretty open communication between one another. We've diverged quite a bit by now but a lot of the higher level Material nouns have stood the test of time so far
we started from some similar constructs and some of the same utility code and then the divergence happened naturally as compose was influenced by kotlin patterns and the emit model
r
It would have been very interesting if (or in some time in the future) Flutter was kotlin based, not Dart based... maybe we will have 'Flutter on' likes, like 'Flutter on Kotlin', 'Flutter on C++', 'Flutter on Java', 'Flutter on Delphi' (yeakes!). Anyway, multiplatform will (in time) be a must, Embarcadero tried, but it became too expensive... I see bright future for theese patterns, but it should rely on same basic rules, then it is more simple to stay stick and in the same time have the flexibility to visit other platforms to solve wider projects. RG
g
Flutter was Kotlin based? šŸ¤”
k
Well compose will be the ā€œFlutter on Kotlinā€ šŸ˜„ Flutter is not a platform to just simply target. it is a Dart dsl layer on top of Skia. Same it is with Compose. it is a Kotlin dsl layer on top of android canvas (which is skia under the hood). I guess as soon as an FFI is written for Skia on your selected language, it can be called
Flutter on
as long as the license lets you do so.