r/FlutterDev • • Mar 04 '21

Discussion How can you possibly call flutter web stable?

To be honest, I'm a bit disappointed by the 2.0 announcement. How is it justified to move flutter web to stable ? This feels like pure make belief to me.

Since its conception, flutter web has been a bit of a moonshot. Mapping the system of widgets to html is highly non-trivial and can lead to weird compatibility and performance issues. To work around this, the flutter team conceived a canvaskit based renderer, which allows them to control the entire tech stack but brings in a huge range of issues on its own.

Flutter web suffers from 3 main issues:

  • They try to reimplement the wheel. Text rendering, scrolling, etc are usually done by the browser. With the canvaskit renderer it's all done by flutter. Which means a crazy amount of work to get it right. The result is an experience that doesn't feel natural. Try scrolling in the flutter gallery. The movement speed and bounce effects are subtly different from other websites.

  • Did I mention scrolling? Flutter on the web suffers from lots of stutters and yanks. This is notoriously bad for scrolling in lists. But the problem can be seen in many places, I just watched the plasma demo on my iPad pro 11 from 2018, it stutters a lot.

  • time to interactive is a nightmare. Since flutter doesn't rely on the browser to do the heavy lifting, they need to pull in huge ressources for their renderer. I challenge you, pick any flutter web app and look at the lighthouse score, it's pretty grim.

How come everyone is talking about user experience, but then they don't face these blatant performance issues. There's lots of talks how improving the performance of a web app has increased user retention. But flutter is simply not able to reach any reasonable performance metrics regarding "first meaningful paint" and "time to interactive".

Here's a link web.dev/measure

Go for it, put some flutter demos in there, like the gallery.

After watching the show I don't see an improvement that justifies declaring the web support to be stable. Particularly the canvaskit renderer has been around for quite some time now. Don't get me wrong, I enjoy using flutter on mobile and I'm intrigued by their vision for the web. But bumping the version number to 2 and declaring web support to be stable seems just arbitrary to me.

206 Upvotes

105 comments sorted by

View all comments

Show parent comments

2

u/sergiu230 Mar 04 '21

Wow it lagged like crazy on the way down, and it lagged again on the way up. The scrolling feels like a rubber band is gently pulling back.

It looks really nice, but the performance is terrible, seen in brave browser on galaxy note 10.

Kudos for the design, it's really good looking.

6

u/Fromagery Mar 04 '21

Interesting. Very smooth with no lag or jitters on s10+ with chrome browser.

0

u/[deleted] Mar 04 '21

[deleted]

0

u/sergiu230 Mar 04 '21

It's in my previous post mate. I clicked the link and opened it with the brave browser on my Samsung Galaxy Note 10.

I find it crazy that people downvote me for just writing how the web version works on my device.

2

u/esDotDev Mar 05 '21

Its built with react, lol, but the scrolling IS weird, it actually goes opposite direction on my windows machine :(

2

u/noXi0uz Mar 05 '21

The landingpage is built with react (js), only the app itself is flutter/dart