r/FlutterDev • • Nov 08 '22

Discussion Flutter 4.0?

The Flutter team just released this tweet on their official page. What should we expect?

118 Upvotes

120 comments sorted by

View all comments

Show parent comments

1

u/slavap_ Nov 11 '22

u/arcanemachined Performance is not great, but I don't see anything terrible bad on that side either. On desktop browsers all is quite fast, on mobile phones - it depends, but with html renderer even mid-range phones are ok.

Scrolling is kind of "strange" for web, and resembles native mobile apps, but that is not a stopper in my case. Also, there are some successful attempts to make it more "web friendly", e.g. https://github.com/adrianflutur/flutter_improved_scrolling

1

u/arcanemachined Nov 11 '22

I appreciate your insight into the matter. I should give the HTML renderer a shot.

1

u/slavap_ Nov 11 '22

u/arcanemachined Summarizing about Flutter Web - it is valid choice in case you are developing cross-platform app and also want it available on web. If the goal is only web and nothing else, or it is going to be "marketing" website - go with Vue or React.

2

u/arcanemachined Nov 19 '22

I wanted to give you a brief follow-up on our discussion.

I finally ran some numbers on build sizes using the Flutter "Writing your first Flutter app" tutorial (found here). I wanted to leave them here for reference:

Release build with canvaskit renderer (default nginx compression settings): 10.78 MB / 6.43 MB transferred

Release build with canvaskit renderer (application/octet-stream and application/javascript compression enabled): 10.78 MB / 4.15 MB transferred

Release build with html renderer (default nginx compression settings): 3.41 MB / 3.42 MB transferred

Release build with html renderer (application/octet-stream and application/javascript compression enabled): 3.41 MB / 1.19 MB transferred

I'm not sure if there are any negative effects caused by my custom compression settings (I didn't notice any), but damn, that is one hell of a difference!

1

u/slavap_ Nov 21 '22

default nginx compression settings

u/arcanemachined Looks like "default nginx compression settings" is zero compression :-)

1.19mb sounds realistic enough, glad you get it.