https://kotlinlang.org logo
#compose-web
Title
# compose-web
s

Slackbot

03/27/2021, 5:44 PM
This message was deleted.
lol 2
c

christophsturm

03/27/2021, 5:46 PM
s

spierce7

03/27/2021, 5:57 PM
I didn’t read that anywhere. I pulled up some demos a few weeks back and noticed that they are just drawing on a huge canvas. Maybe I’m wrong, but take a look:
I see the same giant canvas on other samples too:
I’m not a web dev, so maybe I’m ignorant, but can anyone find an example where they aren’t just using a giant canvas? https://flutter.github.io/samples/#compose-web
Oh - I see. There are 2 methods you can render in.
HTML renderer
Uses a combination of HTML elements, CSS, Canvas elements, and SVG elements. This renderer has a smaller download size.
CanvasKit renderer
This renderer is fully consistent with Flutter mobile and desktop, has faster performance with higher widget density, but adds about 2MB in download size.
All the samples I found must be CanvasKit renders. Deleting not to spread misinformation.
3 Views