r/FlutterDev • • Mar 09 '21

Discussion Let's talk about Flutter Web...

Over the weekend I've ported a small-ish survey app from React to Flutter Web. It uses firebase authentication and firestore. It has routing and handles recurring users. Lots of metadata is recorded. There's lists and grids and a bit of state. I'd say it's enough code to get a decent exposure to flutter web. Here's my impressions.

This post will be a bit of a rant. So let me preface it with this: I enjoy developing with Flutter and Dart. For mobile apps, it's by far my favorite framework. I'm intrigued by Flutter Web and I want to see it succeed.
After the announcement of Flutter 2.0, and the "stable" support for web, I've already voiced my concerns: The flutter web gallery has a horrible lighthouse score and is a not at all a smooth experience. But I thought I should probably give it a fair try.

Let's start with tooling. The one big selling point of flutter is stateful hot reload. This is not available in the web version. I understand that hot reloading is a feature of the dart VM, which is hard to emulate on the web. But if you look at React and Vue, they do offer some extent of hot reloading. For example, it's possible to edit the style of an App without losing it's state. And with Vue, you can get something very close to flutters stateful hot reloading.
In the end I found myself developing in an emulator and then trying the web build from time to time.
Starting the debug process (in chrome) takes incredibly long and is very buggy. A handful of times the debugger just didn't open. About three times it just randomly disconnected.
The devtools don't seem ready for the web. The widget inspector for example shows markup, instead of a visualization of the widgets. Often it's not possible to refresh it, when the content on screen changes.

The bundle size is gigantic. Even hosted locally, the app takes a few seconds to load. I'm not sure to what extent this could be improved by manual optimization. I'm talking about the code produced by futter build web, not some debug version. Also, I'm using the null-safe sdk.
The lighthouse score shows absolutely crazy numbers. Something like 40s til interactive. This doesn't seem so far fetched. If I throttle the network speed in the developer tools, the app does indeed take very very long to load.

The performance of the UI is a problem. Page transition animations between routes flicker and stutter. Sometimes the new route is fully loaded then you get a very short flicker of the old screen. This is not a custom animation, it's just a MaterialApp and the built-in Navigator. Sometimes the navigation to a new route takes a second to be done, sometimes it triggers immediately. Again, I'm not doing anything fancy here. It's a button that pushes a new Route to the navigator when it's clicked.
Animations in general are not smooth, for example when clicking an ElevatedButton.
To get an objective measure here, I'm using the performance tab in the Firefox devtools. I'm starting to record, then click on a button. The fps immediately drop from 60 to 9. Just from clicking a button, nothing else. The button animation stutters and flickers.
In general, performance on Firefox is much much worse than on Chrome.

The "feel" of the UI is somehow off. SelectableText for example does not feel like normal text.
By far the worst part is scrolling. The speed at which a flutter web app scrolls is completely different from other apps.

In the end I feel very unconvinced by flutter on the web. The UI has severe performance issues and some outright bugs.

This is the flutter subreddit. So I guess the people reading this are probably flutter fans :)
Well, so am I.
I really want to use this and as soon as it becomes viable, I'll happily ditch react, preact and vue for it.
But currently it just doesn't look ready to me.
What do you think, what are your experiences?
Any tips and tricks ?

185 Upvotes

91 comments sorted by

13

u/esDotDev Mar 09 '21 edited Mar 09 '21

Are you testing on FF primarily? On Desktop it should be running with skia, which runs quite nicely and should be able to transition your routes with ease.

I think there might be some FF related GPU issues though (skia is gpu driven), as we've also had reports of very bad FF performance on our flutter app, even though for us it runs great.

Mobile device is a different story... mobile devices currently get DOM mode, which is the slowest mode, on the slower devices. They do this to optimize load times, which makes sense, but it still leaves you with a pretty underwhelming UX.

13

u/mintwurm Mar 10 '21

Yes, I'm primarily working with Firefox.

If flutter just straight up doesn't work with Firefox this is a huge problem I think. I think Mozilla is doing great work and the existence of Firefox is important for the web.

4

u/esDotDev Mar 10 '21 edited Mar 10 '21

Well it's not like that. It runs great for me in FF, as far as I can tell, it seems some small % of FF users are seeing issues. I'm guessing it's some gpu related thing, that they will figure out soon enough. Try running in Chrome to see if it's not just some bug their FF support. Certainly web should still be in Beta, but these are really just arbitrary labels, all parts of the SDK are in constant flux and improvement. Web still needs a lot of work, Desktop is far ahead of web in terms of speed, visual fidelity etc, even though they are technically 'beta'. At the same time, Web has come a really long way in the last yr, and in probably another yr or so it will be quite useable.

77

u/bentobentoso Mar 09 '21

I think they're putting the "stable" label on flutter web way too soon. The "but it's meant for apps like spotify" argument is nothing more than an excuse to me considering how badly anything using flutter web performs.

11

u/flagellant Mar 09 '21 edited Aug 09 '24

terrific summer grab lush frighten piquant aromatic quarrelsome concerned longing

This post was mass deleted and anonymized with Redact

3

u/paxinfernum Mar 10 '21

I'm confused though. Rive uses Flutter Web, and it's snappy and loads quickly. I don't recall waiting 40 seconds to interact on it. So what are those devs doing differently?

3

u/mintwurm Mar 11 '21

The time to interactive is a measurement done by the lighthouse benchmark. That's a tool published by Google. It's built into the chrome devtools and they also provide a hosted version web.dev/measure

40s is what you would see on an average phone on not so good mobile data.

When developing an app, you usually access it from a powerful PC and it's hosted locally. The lighthouse score allows a more representative perspective.

2

u/paxinfernum Mar 11 '21

I'm speaking from my own experience using rive.app. Despite having a broadband connection on the slow end (slower than 4G speeds if you want to compare to mobile), it loads up to usable status in under 15s for me. I'm aware of what Lighthouse is, and I would never make the mistake of comparing local load speed to real-world, but I can't help but think that there's something off about your code if it's taking that long to load when all the gallery examples and even a real-world app like Rive are loading in no time for me.

1

u/Realistic-Ganache446 Mar 20 '21

Rive is using react for their website

1

u/paxinfernum Mar 20 '21

1

u/Realistic-Ganache446 Mar 20 '21 edited Mar 20 '21

They are using nextjs and react https://builtwith.com/rive.app

1

u/paxinfernum Mar 20 '21

Only for like the main landing page. Shit, they could have made that with html. The editor is made with Flutter. Read the article I posted. They rewrote the editor in Flutter.

1

u/Realistic-Ganache446 Mar 20 '21 edited Mar 20 '21

Yeah they do use that https://www.wappalyzer.com/lookup/Editor.rive.app/

Scrolling is very bad on my mobile browser though and it does have a big payload but is still loading under 2s.

I wonder they are doing any optimizations like these https://medium.com/flutter/optimizing-performance-in-flutter-web-apps-with-tree-shaking-and-deferred-loading-535fbe3cd674

1

u/Realistic-Ganache446 Mar 20 '21

This link is talking about rive animations and not the website

24

u/FloRup Mar 09 '21

"but it's meant for apps like spotify"

I don't get that argument at all. Are they saying that flutter web exists just so I can throw out a bad version of my app with minimal effort? Just because web runs on everything?

Why not build a desktop/android/ios/etc version and not give a bad impression of your app on the web?

40

u/[deleted] Mar 10 '21

While I agree that Flutter Web should not be out of beta yet (I am building a few production apps with it) - flutter web will probably never be for websites, and it needs to be in the stable channel to get more package developers to take it seriously. There are too many packages that are only ios / android - and it can be very challenging to find ios / android / AND WEB packages (like OAuth for example).

The spotify app example is a great example in my opinion. All my flutter web apps actually perform really well once the bundle is downloaded. They are for auth-only users - SEO is not needed. The lighthouse score is maintly for SEO. My web apps are actual apps. Everything is smooth and performant once downloaded.

I believe that if you don't really understand the best way to do things with flutter and you're learning as you go, the jank will be significantly worse on web compared to mobile.

For example not properly using scrolling listviews builders. Shoddy animations and transitions, creating hacked components instead of learning everything available in the material / cupertino library and modifying from those base items.

I feel they pushed flutter web to stable because they REALLY need package maintainers to start incorporating web. It's a chicken or the egg scenario.

Package maintainers are not supporting web because it's in beta. Web doesn't have a lot of users because there are fewer packages - and it's in beta. Leaving web as an after thought makes it significantly harder to incorporate web-specific conditions into your package compared to if you consider it at the start of your package development.

So the next 6-months of "stable" web will still be somewhat challenging. But I think they needed to push it out.

The browser compatibility and major issues have all been addressed. It's been over a month since I've encountered any issues where something works fine when compiled to iOS / Android, but not web - or not for a specific browser (Safari mostly).

7

u/[deleted] Mar 10 '21

Hopefully the desktop ecosystem grows. I'd love to be able to leverage popular packages in any desktop builds.

4

u/vorcigernix Mar 10 '21

I understand and you have valid points, but the problem is that lighthouse is not about SEO. It is about user experience. This is very same discussion we have from react early days. User don't want to wait seconds for your app and if they don't need to, they won't.

1

u/jv-boomer Jun 03 '21

Re "Why not.." I'm using Flutter to develop a simple app for use in a friend who needs it for her Nursing DNP degree work. I was drawn to Flutter by the idea that if the app is actually used, it should be fairly easy to create versions for iOS and Android. Until then, it runs OK in a smartphone browser. It's been a steep learning curve and I'm happy to not have to learn the ins and outs of releasing to the app stores at this time. Anyhow, that's why I'm using it.

3

u/[deleted] Mar 10 '21

I haven’t actually heard the “apps like Spotify” argument, but if that’s how people are defending it.... how absurd!

As if Spotify doesn’t require efficient scrolling 😹

1

u/themightychris Mar 10 '21

if you don't feel web is ready for your use case don't ship on web yet. Having it in the stable channel now is a big help in starting to ship things it does work well for already

1

u/mvpmvh Mar 10 '21

Having it in the beta channel is a big help in starting to ship things it does work well for already, no?

2

u/themightychris Mar 10 '21

no, I was shipping web builds for a while and there were several points where shipping became impossible because of dependency version constraints and not being able to create web builds from stable flutter versions even with the web feature flag enabled

-1

u/mvpmvh Mar 10 '21

But for someone else, where web was already working for them in beta, would have simply said to you:

if you don't feel web is ready for your use case don't ship on web yet.

4

u/mythi55 Mar 10 '21

I gave flutter_web a fair shot yesterday; I am studying package:riverpod and thought hell why not go rouge and try flutter_web with my simple notes app that I've been building.

My god the tooling is really bad on this one. I keep having to export CHROME_EXECUTABLE, hot restart keeps crashing and doesn't recover the chrome instance, I also had to go on to extra hoops to make sure the plugins I use support flutter_web and the features they provide are available by the browser, once everything was setup, I had to deal with all kinds of silent crashes(for example package:image_picker outright crashes and doesn't log the stack trace when used with brave-browser so I neither got any logs from the system nor did I get them from the debug process.

I would describe my experience as unpleasant and discomforting I never actually thought flutter would compete with native js stuff, I didn't think it be unpolished as it is though.

3

u/mintwurm Mar 10 '21

Yes, this sounds exactly like my experience.

I was really surprised to see how bad the web experience is. After watching the show I was unconvinced by the declaration that web is "stable" now. The web gallery demo is impressive for sure, but it does have some issues. But then again, what they're doing with rive looks great. So when starting out I kept an open mind and wanted to give it a chance.

But there's huge problems everywhere. The tooling doesn't work, the most simple widgets stutter, the UI feels weird.

0

u/slavap_ Mar 10 '21

The web gallery demo is impressive for sure, but it does have some issues.

There is no huge problems everywhere, otherwise " The web gallery demo is impressive for sure" was not possible. There are minor problems, but nothing super critical. I have 50+ dependency in my app and it builds and works for Android and Web without any major problems.

-1

u/aislanmaia Mar 10 '21

Have you upgraded to 2.0?

28

u/hillel369 Mar 10 '21

We're really happy with choosing Flutter Web, I thought it may help to share...

https://demo.invoiceninja.com

While I agree with many of your points I end up at a different conclusion. Although the VueJS web dev experience is much better, with Flutter Web I'm able to spend most of my time building our app as a desktop app. I only need to spend a bit of my time in the browser (maybe 10% ) when implementing web specific features.

As the Flutter team said, the key right now is only using Flutter Web for certain types of apps. These are typically apps which are logged into (no SEO) and are used repeatedly by users (PWAs) so only need to be downloaded the first time. The great thing about being able to compile to all platforms is that users can have the best performance when using their phone or computer while still being able to access the app from any browser.

With regard to your specific points about CanvasKit and Firefox they line up with our experience as well. We're using the HTML renderer on desktop and mobile (for now) and Firefox on Linux is particularly bad. I have no doubt it will improve with time, we're skating to where the puck is going to be.

2

u/[deleted] Mar 10 '21

That's impressive! There are some issues, e.g. some first-animation jank, and missing scrollbars but those are fairly minor. Still a bit slow to load but I guess that's ok if you're competing with other enterprise software which also tends to be hella slow.

2

u/[deleted] Mar 15 '21

It's janky as hell to me--Safari browser on iPhone 11 (and iPhones have a really strong single-core force that is what we can at best use with Javascript)

1

u/hillel369 Mar 15 '21

Thanks for trying it out! I'd be curious to know if performance is better on Chrome? As long as the features work in practice this won't be a problem, in general users will be running the native mobile app on their phones. I don't think performance is as good as JavaScript but I do think it's good enough.

1

u/[deleted] Mar 15 '21

All browsers on iOS unfortunately are Safari wrappers since ever and that did not change, I don't think there's a V8 engine that someone can use from App Store

1

u/hillel369 Mar 15 '21

That's a good point

1

u/excode_net Mar 25 '21

I have query regarding flutter Web . In mobile-app the SQLite database save and store all data in local device. What will happen for WebApp? if we use SQLite DB for Web Development will it save in local Computer ? What will happen if user change Device ?

P

1

u/hillel369 Mar 25 '21

Hi, we store important/long-lived data in a relation database in the cloud but also use localstorage to save state.

1

u/excode_net Mar 25 '21

So what is the use of sqlite in Web App ?

1

u/hillel369 Mar 25 '21

I think you'd need to use something else

10

u/[deleted] Mar 09 '21 edited Mar 09 '21

I'll happily ditch react, preact and vue for it.

This is the problem! I can't believe people still don't understand what Flutter Web is.

You seem to think that Flutter Web is in the same category as React or Vue. This is not the case. Never was and never will be.

If you want to build a mobile app like Spotify and you also want this app to run in the browser -> Flutter Web is the way to go.

If you want to build an actual website like Reddit -> React/Vue/etc is the way to go.

You seem to want to build an actual website. So you should not be using Flutter Web, but React/Vue/Django/...

40

u/mintwurm Mar 09 '21

Hm, I don't really agree.
I understand that flutter web has some fundamental limitations that make it hard to compete with react, vue, etc. The bundle size is hard to reduce. So flutter web is targeted at different use cases. Ok, makes sense.

But the issues are disappointing. A button click shouldn't result in a framedrop from 60 to 9. The scrolling speed differences between flutter and html are weird. The performance differences between Chrome and Firefox are extreme.

If a flutter web app takes a bit longer to load and has some occasional stutters, I'd be happy. But currently it's much more than just a little polish that's missing.

4

u/[deleted] Mar 10 '21

A button click shouldn't result in a framedrop from 60 to 9. The scrolling speed differences between flutter and html are weird. The performance differences between Chrome and Firefox are extreme.

IMO - this is a sign that you are not building a performant app by following best practices and convention. I've been working with Flutter web for about 8 months and do not have these issues. Even the inkwell ripple effects and navigator transitions are smooth. Zero scrolling speed differences - even with very long lists using ListView.builder().

6

u/mintwurm Mar 10 '21

But how can I not be following best practices if this is just a button?

I think the problem is canvaskit + Firefox

3

u/RyanTheLionHearMeRor May 05 '21

Scrolling is the biggest issue with Flutter. It's not just on the web. Scrolling feels off on mobile too. This HAS to be fixed for Flutter to succeed

3

u/[deleted] Mar 09 '21

I agree that Flutter Web should have better performance, but I can not stress enough that Flutter Web is NOT a web framework.

You should just stick with React/Vue

9

u/bradofingo Mar 09 '21

It is just a guess, but I think that There isn’t such a thing as web app. That is an arrow to the knee from Google. It will be very hard for it to get to the webassembly level of performance while their compatibility will be the same. On another hand, Your very Spotify example uses electron for desktop apps, this means that HTML entered the desktop world, is working and has a ok performance level. It is really hard for me to see where flutter web fits.

5

u/Roadrunner571 Mar 09 '21

Evernote switched from native to Electron and nearly everyone is pissed about that on r/evernote

And don’t get met started on Slack...

VS Code on the other hand is quite nice.

4

u/bradofingo Mar 09 '21

yeah, I am not a fan of electron either.

The point is that I don't see where Flutter Web fits when you can use WebAssembly to build web apps.

Imagine the amount of work Google is doing to make Flutter Web viable the way it is...

4

u/Roadrunner571 Mar 09 '21

I have also hope in WASM.

I see a bright future for Flutter when it comes to PWAs. Using Flutter, you can bypass the app stores and provide a “large app in a small package“.

11

u/mvpmvh Mar 10 '21

Flutter is touted as a ui toolkit. Anywhere pixels are rendered to screen, flutter is supposed to be a good choice. Only after flutter web continues to be terrible in web had the conversation pivoted to iTs nOt fOr wEbsiTes

5

u/augst1 Mar 10 '21

I love Flutter but the problem is at their keynote they kinda are comparing flutter to popular js frameworks @35:30

4

u/esDotDev Mar 09 '21

This is a bit of an artificial distinction, website vs app, this line is very grey and blurry.

You could say that Flutter is not great for "text-heavy" web pages like wikiepedia, simply because the DOM just excels here, but it should pretty much be able to make the majority of marketing web-sites if it's good enough for an "SPA".

13

u/slavap_ Mar 10 '21

flutter build web --release --web-renderer html

What size of JS are you getting after that?

Do you deploy to web server with gzip compression before using Lighthouse for scoring?

9

u/[deleted] Mar 09 '21

The default renderer is WebAssembly-based and have additional 2Mb download. You could try the html renderer instead

3

u/muntaxitome Mar 10 '21

Did anyone tell you that Flutter web was ever going to be a Vue killer? It's a way to get a passable web version of an app. Given how fundamental the issues are I don't see how people are expecting much more than what we got at this point.

7

u/mintwurm Mar 10 '21

Well, the flutter engage show made a huge fuzz about "web is stable now", with slogans such as "everywhere you need to paint pixels on a screen, flutter is the way to go".

That right there is what drives the expectations of people.

The problem is not that flutter web can't beat Vue in some specific benchmarking scenario. The problem is that flutter web is pretty much broken: Stutters and yanks anywhere from clicking a button to scrolling in a list. Bad tooling. Package ecosystem has huge gaps (no firebase realtime database plugin for example). Look and feel of the UI is off.

0

u/slavap_ Mar 10 '21

Works absolutely fine, "broken" has nothing to do with reality. UI is standard material design or Cupertino. The only complain is slow initial loading, but it is not a big deal.

3

u/mintwurm Mar 10 '21

Hm, that's not my experience.

There are bugs: the transition between routes flickers, sometimes you see a short glimpse of the old page on top of the new one. Not a custom animation, standard navigator and material app.

There are lots of stutters: button clicks, scrolling, animations,...

The UI feels inconsistent, scrolling speed on desktop feels different from html. I don't mean stutters, I mean turning the scroll wheel and distance traveled. Text selection is awkward.

The tooling is not there. Devtools are not working, debugger crashes and disconnects

The performance of canvaskit on Firefox is not ok.

Ah well, I'm basically reiterating my first post. What I'm saying is, this is much more than bad lighthouse scores. Flutter web is a very rough experience.

1

u/slavap_ Mar 10 '21

Without details it is pointless to complain.

Let's start with simple things:

  1. Which renderer?

  2. What js size?

  3. Are there any differences between Firefox and Chrome?

  4. IDE with crashing debugger? VSCode or Android Studio?

  5. Hardware?

  6. Publish your app (if possible) with sources, so may be we can give you advise how to improve it.

  7. Open bug reports on github.

1

u/muntaxitome Mar 10 '21

Ah I didn't see that, yes they should definitely be careful how they communicate this. Flutter web would be pretty disappointing for someone buying into hype.

20

u/Maistho Mar 10 '21

I find it insane that here I'm sitting and feeling bad about my Angular apps having a large payload and loading slowly compared to my react apps, and then some people are really trying to tell me that Flutter Web is usable...

I'm trying to get my initial JS app payload to be less than 500kb so it loads faster. The Flutter Web canvaskit.wasm file is 5 times that already, without me even including an app...

And for some apps maybe it would be ok to have slow initial loading times, but the performance issues doesn't stop here either. On my desktop PC the performance is usually fine, but on anything like an older laptop it's pretty awful.

13

u/themightychris Mar 10 '21

Flutter Web isn't an alternative to Angular, it's an alternative to app store distribution. If you're delivering a utility app to a staff audience it's awesome already. Not everyone is building consumer web experiences

9

u/Maistho Mar 10 '21

But it absolutely is an alternative to angular or react.

I could build an app using angular or react with something like Ionic instead of Flutter, and the app would be vastly better on web, and probably still pretty good on mobile. I could deploy that same app as an electron app if needed so I have all the same platform support as Flutter. But the web and probably also desktop experience (haven't tried how mouse support on desktop compares to web yet) will be way way better.

Don't get me wrong I much prefer the DX of building Flutter apps and for mobile apps it's fantastic. But if I'm considering web as a serious target I'd never use it.

2

u/slavap_ Mar 10 '21

Use html renderer, so no wasm will be used.

flutter build web --release --web-renderer html

Though 500kb is not possible, but 1.5 - 2 mb is quite possible and will be less than 500kb with gzip.

2

u/Maistho Mar 10 '21

I was under the impression that the html renderer had other issues, but perhaps not.

Un-gzipped size is still very important since that determines how much time is needed to parse the JS. Slower devices will struggle to parse 2MB of JS in a reasonable time.

1

u/slavap_ Mar 10 '21

Don't forget that deferred loading is also working, so this 2mb could be split to chunks, though main chunk will be around 1mb in any case.

6

u/eibaan Mar 10 '21 edited Mar 10 '21

My experience is a bit different. I created an RPG character generator as a side project on a time budget. That is, I spent one long evening to get it done. To share it with friends, I wanted to publish my app for the browser without spending more time. Note, that I didn't want to create a web application, but something that can be used without downloading and installing an IPA/APK. That's an important distinction.

The application is simple and displays a dozen of pages, wizard-style.

Google's PageSpeed Insights website reports First Contentful Paint (FCP) and Time to interactive (TTI) as follows:

Desktop, canvaskit:  0,2s FCP   2,2s TTI
Desktop, html:       0,5s FCP   1,3s TTI
Desktop, automatic:  0,2s FCP   2,5s TTI

Mobile, canvaskit:   0,8s FCP  10,1s TTI
Mobile, html:        2,4s FCP   6,6s TTI
Mobile, automatic:   2,4s FCP   6,7s TTI

It mainly complains about too much unused JavaScript. That's probably a false complain because the tool doesn't click through my application, obviously. Also, I cannot remove code from canvaskit.js. Then, in automatic mode, where both canvaskit and html renderer are available, the total score is even worse because application code contains even more unused JavaScript. Still, cross-platform performance is better. The tool also complains about poor SEO, but I couldn't care less.

Because people have to read the first page before the can make a choice, FCP is more important than TTI and therefore even the 10s on mobile are okayish. Launching the app within 1s is sufficient fast. And because it can install itself as a PWA, the loading time is not that important, either.

To sum this up: Doing this experiment and writing this report took longer than sharing my application on the web and that is the feature most important for me: I can make my Flutter app available on more platforms than I could before.

4

u/[deleted] Mar 10 '21

FCP is more important than TTI and therefore even the 10s on mobile are okayish.

I mean, it's still pretty awful. Just because your application can work around it doesn't mean it isn't an issue.

11

u/dan-danny-daniel Mar 10 '21

i think flutter web being pushed to stable is just the flutter team admitting it won’t even get much better. they’re probably just waiting until the performance of web browsers improves, unless they really plan on doing something drastically different.

3

u/[deleted] Mar 10 '21

[removed] — view removed comment

2

u/dan-danny-daniel Mar 13 '21

yeah, everyone’s been wondering why it’s been pushed to stable with such performance, but no one considered that it couldn’t get much better.

i’m a little pissed though, as there’s a lot of widgets that aren’t even supported yet, like clipper

1

u/[deleted] Mar 13 '21

[removed] — view removed comment

1

u/dan-danny-daniel Mar 13 '21

it takes a long time to load in general, barely usable on many devices

4

u/chrabeusz Mar 10 '21

I wish they have spent all this effort on improving performance or code generation improvements. Flutter Web is a cool concept but worthless without the mobile platform.

6

u/[deleted] Mar 10 '21

flutter web is a gigantic pile of shit at the moment. i use react native because atleast i can import some component code from web to mobile with zero performance cost. the performance and bundle size is not a issue there, because it's just Javascript. no heavy render engine shit, no heavy dart2Js transpile shit, just js. don't get me wrong, i love flutter for mobile and desktop but unless they get the bundle size to something realistic and somehow solve the performance problem flutter web is not gonna be used anywhere. anything else is just an excuse. i hope i am proven wrong so i can leave Js but i don't see it happening anytime soon

3

u/jatinhemnani Mar 10 '21

I guess for now Flutter is good for mobile apps and not for web

3

u/Weensome Mar 10 '21

My experience using the Flutter Gallery web samples on Chrome on my laptop has been fantastic, very smooth throughout.

However, on desktop Firefox it was very laggy, and same with both on mobile.
It sounds also like the development tooling and accessibility still need work.

If they could improve the performance alone, Flutter web will be a great tool for desktop browser/kiosk type content. But mobile web and document-centric type content does seem a way off.

I'm looking forward to see if the Flutter team can improve things, because they've done a great job so far in my opinion.

3

u/[deleted] Mar 10 '21

I just know there are two runtimes can you test with the other one ?

Btw flutter for web is not web it is just flash but slow flash ;)

4

u/aryehof Mar 10 '21 edited Mar 10 '21

Flutter web is still beta? Even though it is alpha quality? Yet it is now in the “stable” channel, which actually is in my opinion, is just a PM marketing move to put shine on a rather fundamentally flawed rock.

Seriously Flutter web is suited for just a couple of purposes and that situation is unlikely to change. Those purposes are long running dashboards, information displays and kiosks.

For these, load time, UI performance and experience, and SEO are relatively unimportant.

That could perhaps be extended to web-based interactive dashboards or simple process control systems panels, in some specific cases.

2

u/Darkglow666 Mar 10 '21

Other than the missing stateful hot reload, my company has had great success with Flutter Web. We always compile for CanvasKit to get the best performance and the most accurate rendering. I have a pretty large, involved web app online right now, and it's about 6MB and runs quite nicely.

3

u/vorcigernix Mar 10 '21

Thanks for the post. I played with web in beta, burned like whole day on trying to make a very simple web app. I had my doubts playing with new samples, but you basically confirmed that I can scratch that backlog item "revisit flutter" for at least one version. It is mind boggling that this comes from the same company that develops Lighthouse.

1

u/paul_h Mar 10 '21

Did you try to use selenium or cypress on conponrnte of the app -what was that like?

1

u/Pixelreddit Mar 10 '21

I am using Flutter Web and one of the items that I believe needs attention is for Flutter to automatically add vertical scroll bars to pages that are longer than the view. This is a standard on any web page and most users are not going to know to vertically scroll to use their mouse scroll wheel or click with the mouse and drag.

The following are the two GitHub issues I am following:

https://github.com/flutter/flutter/issues/70866

https://github.com/flutter/flutter/issues/40107

But I am hopeful.

1

u/sebastienlorber Apr 05 '21

For what it's worth, here's my ReactNative developer's perspective: https://twitter.com/sebastienlorber/status/1367424111111245827

ReactNative is suitable for performant content-centric websites with good SEO for years already. Twitter use it in production on its main UI.

I'm also running ReactNative on my blog :)
https://sebastienlorber.com/using-expo-in-gatsby

-1

u/sgrace_wrk Mar 09 '21

Web has hot reload, granted it has to refresh the page cause of JS updates in the backend.

The DevTools is underwhelming, for sure, but isn't bad.

The bundle size really depends on how much static data you're using. I have a large web app that had local JSON and the size was <30MB in total, and I'm migrating to Firebase to reduce that.

The animations I can't say, I don't use them.

10

u/mintwurm Mar 09 '21

I mean stateful hot reload. That is missing

13

u/Strobljus Mar 09 '21

30mb is absolutely massive. Holy smokes.

-2

u/themightychris Mar 10 '21

on par with an app store installation though

1

u/Strobljus Mar 10 '21

And compared to an average PS5 game it's minuscule!

1

u/themightychris Mar 10 '21

point being, it's more an alternative to app store distribution in many use cases, and using byteload isn't what you care about much they're

0

u/[deleted] Mar 10 '21

ELI5: is Flutter Web gonna help me combine Ruby on Rails web development, Flutter mobile development and everything in between? Super fresh on all tech stacks, very limited experience in both mobile and web dev, but really dig Ruby and want to primarily code in Ruby, but also enjoy Flutter simplicity and want to make applications for both web- and mobile.

2

u/bentobentoso Mar 11 '21

Ruby on rails is backend tech, flutter is frontend regardless of if you're running it on a browser or not. You can't really "combine" them.