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

24

u/[deleted] Mar 04 '21

The Flutter Web experience is still lackluster. The native experience (iOS/Android/Desktop) is much much better.

I am biased because I have no use case for Flutter Web, but I really despise Flutter Web. Google should focus on iOS/Android/Desktop. Flutter Web just adds too much confusion (Flutter web is not a web framework), takes up developers resources and - worst of all - makes Flutter look really bad.

10

u/mintwurm Mar 04 '21

I wouldn't say that I hate flutter web. On the contrary, if they manage to pull it off, it would be awesome. I'd really like to actually have that vision of one codebase all platforms.

But it's just not there yet. And the average app is not a crazy complicated desktop program which now runs in your browser. The average app is some nifty idea that wants to be lightweight and fast and solve some problem in your daily life. This is just straight up impossible with flutter web. The bundle sizes are gigantic, so the user has to wait very long until anything happens. And then it's clunky and feels weirdly different from other websites.

So if Google decides to take on that challenge to deploy flutter to the web, great. If anyone can make it work, it's them.

But if they arbitrarily decide to call something stable, which is at best a tech preview, it feels really weird.

2

u/Silfalion Mar 04 '21

Would really love that too. I don’t develop for web and didnt before in an extensive way but god do all those framework make my head spin. Something remotely close to a stable not ever changing base for development would be delightful. That’s what made me excited about yesterday’s conference, finally being able to dive into web hassle free. I hope they will optimize it as much as possible.

110

u/ObviousDeparture1463 Mar 04 '21

I sortof see Flutter for Web as a replacement for the kind of experiences that people were building with Flash and Silverlight, with the added huge bonus of not needing the user to install a plugin. For a certain kind of rich app experience in the browser with highly bespoke UI it's probably the most productive platform out there. But for the vast majority of web applications it's not a great fit. Flutter for Web will always be niche but is still inherently very cool and will shine in a certain number of (admittedly limited) use cases

4

u/[deleted] Mar 04 '21

This

1

u/binflo Mar 04 '21

This guy has my vote!!!!

3

u/fzammetti Mar 05 '21

And my axe!

Shit, wrong meme. My bad.

1

u/rivendell_elf Mar 05 '21

And my bow! /s

1

u/fzammetti Mar 05 '21

Username checks out.

(This time I know that IS the correct meme!)

-1

u/timmyge Mar 05 '21

Then ship flutter runtime engine in browser not build on web/js/canvas crap

55

u/jrheisler Mar 04 '21

If you use flutter to build a "website" you will be disappointed. If you use flutter to build a PWA, you'll be pleasantly surprised at how app like your "website" is.

I've been writing desktop apps for decades, and to be able to build the same kind of user experience in a zero friction PWA, well it just amazing.

FYI, I know flutter is not alone in doing this. But, that flutter does do this, and offer a stable platform to do it from is fantastic. Best part, I don't pay a few grand a year in licensing to be able to use flutter/dart like you would do with many other platforms. Other than supporting packages there is no bill. Sweet deal!

2

u/[deleted] Mar 04 '21

what is a PWA?

Explained like I am a five year old

4

u/reflect25 Mar 04 '21

It's a "progressive web app" in contrast to a just responsive website or even just static website. (It can be a bit of a sliding scale though)

Reddit itself currently has some progressive web app-like features with the save, notifications, etc... For example in the current reddit it has infinite loading of the lists when you scroll downwards additionally you can view a thread without having to open a new page. It would dynamically create the overlay so you can view the thread and also close it without loosing your previous position in the list. It can be markedly slower sometimes though.

In contrast the old https://old.reddit.com/ you had to click next for more results onto a new page. And opening a thread was on a new page. Though some benefits are that it's a lot faster.

0

u/[deleted] Mar 04 '21

[deleted]

6

u/themightychris Mar 04 '21

PWAs are often designed to feel more "app like", and Flutter Web is pretty good at delivering an app-like experience via the web.

Because Flutter Web implements a lot of things like scrolling on its own, something like scrolling through article text will feel very weird vs what you'd expect from a website. The same scrolling in an app-like list won't feel out of place though, it's similar to the scrolling you'd experience in a native build of the same app

0

u/[deleted] Mar 04 '21

[deleted]

3

u/themightychris Mar 04 '21

not really, it's different use cases

3

u/jrheisler Mar 04 '21

I was playing with words. All "websites" in flutter are progressive web sites. If you ONLY want a website, with nothing "progressive" about it, then don't use flutter.

If you use Flutter, expect a bit longer initial load, not great SEO right now... But it will offer everything a desktop app offers.

0

u/[deleted] Mar 04 '21

[deleted]

11

u/einie Mar 04 '21

A typesafe somewhat sane language instead of the clusterfuck they call javascript.

1

u/asynchronous- Mar 05 '21

Angular and typescript are the way.

1

u/[deleted] Mar 05 '21

You can turn JavaScript into a fairly reasonable language by using Typescript and turning on all the ESLint rules. Typescript is even better in some aspects, e.g. it has discriminated/tagged unions

I don't think the language is a big enough reason to use Flutter. A better argument is that you don't have to use HTML & CSS which are really annoying to make app-like pages with.

2

u/TheFr0sk Mar 05 '21

While I don't agree that HTML and CSS is particularly annoying, flutter also has the advantage of reuising most (if not all) of the codebase to build native mobile apps. So you could have a website / native app without much additional effort.

For example, a home automation platform, of built with flutter, could offer a native android+ios apps with push notifications and whatnot, while also offering a desktop-like app running in the browser.

0

u/[deleted] Mar 04 '21

[deleted]

2

u/redfournine Mar 05 '21

You know you can use Typescript for any JS frameworks, yes?

1

u/jrheisler Mar 04 '21

Like einie said. You can build an application that is built in a safe and sane way. JS isn't really a robust language.

1

u/PomegranateNo7855 Mar 04 '21

And i guess to add to previous responses. The main benefit would, I guess, be if your project supports app and/or desktop as well, most of the code will be reused. I guess that's the same benefit as for writing apps in a cross platform environment to begin with.

68

u/Elixane Mar 04 '21

I've been using Rive ( https://rive.app/ ) which is made with Flutter on the web and it works very well. This is the kind of app that Flutter web is good for. People think it's going to replace html/css/js and it clearly isn't meant to. It's just another tool to use on the web, with a specific use case.

17

u/Godvater Mar 04 '21

Hot damn that is impressive. I would love to see the source code of a website like that built on Flutter.

9

u/Samdogg7 Mar 04 '21

I don't see the scrolling issues everyone is talking about on this site! That being said I have limited testing of Flutter websites.

7

u/Baul Mar 04 '21

There are two renderers that can be used. By default, mobile web loads the html renderer while desktop web loads the canvaskit renderer.

Canvaskit is faster, but larger to download, so it's only used on desktop by default. The scroll lag is most noticable with the html renderer, and thus happens most often on mobile.

3

u/Samdogg7 Mar 04 '21

Got it. So does this require longer loading times for the user on web? Particularly if they have a slow connection? What are the downsides of Canvaskit that you have encountered? I am interested in using Flutter for web, but this post has me worried lol

9

u/Baul Mar 04 '21

Yes, canvaskit does require longer loading times than the html renderer, and would be exacerbated by a slow connection.

Fortunately, flutter lets you choose. You can choose between:

  • Auto: HTML on mobile, canvaskit on desktop (this is the default)

  • Force canvaskit

  • Force HTML

The tradeoffs are effectively size vs performance. HTML will load faster, but perform worse, and canvaskit will load slower, but perform better. It's up to you to decide which way to lean given those tradeoffs.

3

u/Samdogg7 Mar 04 '21

Thank you Baul! I will do some more research, you got me on the right track

1

u/Alvessilvaa Mar 08 '21

Hi u/Baul, where cache storage enter in this story? What can and cannot be cached in a flutter web app? Sorry for my english.

1

u/Baul Mar 13 '21

Obviously, you can make your own in-memory cache in dart pretty effortlessly, and that will work as expected.

If you're looking for permanent storage, then you'll have to be careful which persistence solution you use. I'd recommend one that's mostly done in dart and just stores binary blobs, like Hive does. Avoid plugins that rely on a platform native implementation of a database, because then you're limited to whatever platforms it supports.

1

u/dhbradshaw Mar 05 '21

Thank you!

I couldn't figure out why everyone was complaining about performance while my experience has been great. Sounds like the difference is that I avoid browsing on mobile.

5

u/bulletbait Mar 04 '21

FYI for anyone clicking on that link, everything that's not behind the login (including the login page itself) is built w/ React, not Flutter (according to my React devtools extension).

3

u/Cymarxcr Mar 04 '21

Yeah that's the right approach for me. If I was building an app like this I'd probably use a jamstack landing page with the description & login, then use Flutter for the actual app.

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.

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

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.

1

u/shuwatto Mar 04 '21

Good to know.

I wish I could have heard Rive people's experience on Flutter web in the event.

0

u/[deleted] Mar 04 '21

[deleted]

1

u/esDotDev Mar 05 '21

It's also very slow.

79

u/eibaan Mar 04 '21

It is important to know that Flutter web isn't a web framework but a way to run Flutter apps on the web (browser). And that's IMHO a great use case for providing apps directly to users, without the hassle of app stores and/or Testflight and directly distributed APKs.

31

u/Flutter28292 Mar 04 '21

I think this is pretty much the explanation for everything about web and should be the official description on it. People expect to be able to build websites with Flutter, while all it really is supposed to do is bring your mobile app to the web. I mean I would love this too, but it is just not supposed to be that.

3

u/mvpmvh Mar 05 '21

It's a UI toolkit. It's supposed to bring your ui to anything that can render a ui. This revisionist history of "it just brings your app to the web" has started gaining traction after poor web performance

2

u/slavap_ Mar 05 '21

Also Flutter web app works just fine within website in iframe :-)

3

u/skipbridge Mar 04 '21

Yup. I’m using it for user testing and internal UX QA rn.

28

u/robschmidt87 Mar 04 '21

You are all software developers and doesn't know what stable means, lol.

Stable means API complete. Nothing big will break with further updates. It does not say anything about best performance.

Example: The first Firefox 1.0 was once stable. But it's very slow compared to now.

The way HTML/CSS renders currently is highly optimized over the years. But now we are at a point where the layout concept of HTML can't be optimized any further. (i.e. changing the width of any HTML element triggers layout/repaint of the whole page!)

This limitation was the reason they invented Flutter. All began from a stripped down fork of chromium engine. They fundamentally reworked the layout approach, which scales way better.

This is the first draft of a stable piece of technology. They will push things further. Also once WASM is cached by CDNs you just hop from one Flutter site to another. Also the do-it-yourself approach of Flutter is far less pain than testing everything on Chrome, Firefox, Safari etc.

3

u/[deleted] Mar 05 '21

Excellent point.

16

u/tudor07 Mar 04 '21

I agree. Flutter works great for me for iOS/Android but I'm very skeptical of Web, and it also sucks that they invest so much effort in Web and there are issues in the mobile side that are opened years ago and still unfixed.

8

u/[deleted] Mar 04 '21

[removed] — view removed comment

1

u/pickleback11 Mar 04 '21

yupppp. 1000000% agreed

8

u/Ultra1101 Mar 04 '21

Flutter Web is not intended to be a replacement for React, Angular, etc. Flutter Web is an easy way for developers to get their mobile/desktop apps to the web platform without having to rewrite them.

1

u/mvpmvh Mar 05 '21

As a developer, why would I want to use both React/Vue/Angular and Flutter Web? If it doesn't replace the other, how do I use them in tandem?

4

u/Ultra1101 Mar 05 '21

If you are focusing on only a web app, use react/alt. If you have a flutter mobile/desktop app and want to easily port it to web without writing a new client, use flutter web. There is no scenario where you would use both.

16

u/Kardon403 Mar 04 '21

They kind of mentioned later in the AskFlutter portion of the show that no real changes had been made to web, but they're adding it to the stable channel simply to make it easier for developers who are using that channel to try it out. It itself is still not considered 'stable', they just dumped that last beta snapshot into the stable channel so devs don't have to swap channels to try it out (which is admittedly, a very trivial thing to do).

4

u/redbrogdon Mar 05 '21

Hi! Host of AskFlutter here.

When I mentioned a beta snapshot during the Q&A, I was actually referring to desktop platforms, rather than web. Web has been declared stable and ready for production use.

I should mention that we don't use "stable" to mean "completely finished." No SDK ever really is! Much the same way Flutter on mobile has improved since the 1.0 launch, we look forward to improving Flutter on the web. That'll be done with y'all's help in the form of bug reports, feature requests, code contributions, and responses to stuff like our quarterly survey.

2

u/Kardon403 Mar 05 '21

Ah my mistake, I was just rewatching it today and I was incorrect. Timestamp to the comment regarding Flutter for Desktop in the stable channel: https://youtu.be/yll3SNXvQCw?t=6608

5

u/themightychris Mar 04 '21

Flutter web has been pretty great for doing Flutter things on the web, as others have said it's not great as a website framework and that's ok

FWIW, Flutter web has been working well enough for me and it being disabled in Flutter's stable releases has been the biggest barrier to using it for what it is good at

12

u/jbryanh Mar 04 '21

For my marketing site, I do not use flutter. But this framework has enabled me as a single person to create and manage an iOS, android and flutter web site with the same code base. The productivity and efficiency is amazing. I just learned to code this year and have a business started off flutter.

Knock it all you want for bot being perfect, but it’s earth shattering and is the future.

1

u/sripaanoop Apr 14 '21

Good for you.

12

u/TriedAngle Mar 04 '21 edited Mar 05 '21

I don't understand the latest flutter management choices tbh.

"ignoring" animation stuttering on Ios and now calling a semi-finished product stable is a weird direction.

Edit: ignoring is not the fitting word, not prioritizing when it should be is better I think.

19

u/[deleted] Mar 04 '21

"ignoring" animation stuttering on Ios

Given how much people talk about it I seriously doubt they are ignoring it. They probably just haven't figured out how to fix it yet.

14

u/HamSlayer- Mar 04 '21

They're definitely not ignoring the issue. There was a post about it a week or 2 ago. One of the flutter product managers said that they're working on a long term solution. It's just that it's not a very easy fix and requires more fundamental changes to the engine.

10

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

This is probably related to the Google's internal policy of innovation over stability. I've read that basically, you don't get grade / pay raise if you don't innovate (i.e. make new features) and just fix bugs and make stuff better.

Doesn't justify it one single bit. The more I see, the more I believe that Flutter should be transferred to something like Flutter Foundation with Google being at most a financial backer of that entity. It is simply not safe while the team is under the yoke of Google's corporate culture.

9

u/[deleted] Mar 04 '21

Flutter is a free software and it isn't just developed by Google employees, but volunteers. You can become a Flutter developer today.

Nobody ignores anything, they take performance issues seriously, but they need your help to identify all the issues, so instead of complaining and making up stuff about Google you should start submitting issues.

https://github.com/flutter/flutter/projects/188

0

u/[deleted] Mar 04 '21

[deleted]

3

u/Ultra1101 Mar 04 '21

Flutter is open source and community-supported. Therefore, if you want to change something, you can! I don't know why you think that your opinion is an objective reality and that everyone should believe in it. u/Comevius stated facts, and you took it as a personal attack on you because it does not align with your opinion.

2

u/munukutla Mar 04 '21

Welcome to Reddit.

1

u/[deleted] Mar 04 '21

Creating issues with a description, source code, screen recording and timeline trace actually helps them diagnosing and solving these problems.

The Flutter team so far closed more than 42000 issues. If you follow them on Medium you can see that they continue to improve performance all the time.

https://medium.com/flutter/flutter-performance-updates-in-the-first-half-of-2020-5c597168b6bb

Every software, framework, operating system, driver and so on have issues. The Flutter issues did not seem to stop Reflectly, which people like on iOS enough to give it 4.6. I find it too predatory, but the app works great and the reviewers like it's slick animations.

2

u/esDotDev Mar 05 '21
  1. Flutter itself is, and always will be, a semi-finished product

  2. They didn't ignore anything. You can argue they missed something, but they are just human.

3

u/bizz84 Mar 04 '21

I completely agree about the performance metrics. I ran a couple of Flutter web apps with web.dev/measure and got some disappointing results.

Flutter gallery web demo:

First Contentful Paint 7.9 s
Time to Interactive 12.5 s
Speed Index 9.7 s
Total Blocking Time 2,040 ms
Largest Contentful Paint 12.9 s
Cumulative Layout Shift 0

Invoice Ninja web demo:

First Contentful Paint 10.4 s

Time to Interactive 30.5 s

Speed Index 25.7 s

Total Blocking Time 15,840 ms

Largest Contentful Paint 22.7 s

Cumulative Layout Shift 0.013

To be fair, the numbers in the report are much worse than what I have observed when actually running those apps (e.g. time to interactive is much faster than 10 sec).


For reference, I also ran the report on my website (ok it's a website and not a webapp) and got much more reasonable results:

First Contentful Paint 2.1 s

Time to Interactive 2.8 s

Speed Index 3.1 s

Total Blocking Time 470 ms

Largest Contentful Paint 2.9 s

Cumulative Layout Shift 0.031

So yeah, I think Flutter web can't be taken very seriously for the majority of use cases unless the metrics improve considerably. Also many Flutter web apps run reasonably ok on Chrome. But performance lags far behind on desktop/mobile on all other browsers.

0

u/[deleted] Mar 04 '21

[deleted]

1

u/bizz84 Mar 04 '21

I haven't done much professional webdev myself so I can't really comment much about React/Vue etc. If I was building a web-first product and my business did rely on it I would definitely go for some mature and proven web stack, even if it meant going slower and learning separate tools and languages.

My website is built with a Swift static site generator (that I have forked to accommodate my needs), and otherwise uses basic HTML + CSS and a bit of vanilla JS. Works great.

1

u/bizz84 Mar 04 '21

For other things I would choose Flutter web in a heartbeat:

- admin dashboards

- concept validation & feedback (easier to send a URL to clients than have them go through TestFlight)

5

u/dancovich Mar 04 '21

I agree with everything you said but I believe this push for the web with 2.0 is more of a marketing thing. The real game changer that justifies the move to 2.0 is null safety but that doesn't make a good headline at all.

Edit: also null safety is more of a Dart thing. The Flutter part is only making sure the core framework is fully null safe compatible.

2

u/adel_b Mar 04 '21

The tech is stable, your product isn't... On mobile it take you less efforts to make usable app with Flutter, that doesn't mean you can't do the same with web.

However, I don't think you should use Flutter for web, it should be used party not as full solution.

2

u/[deleted] Mar 04 '21

Sadly, the kind of bugs I saw on F Web means that there is no way you can work around them reliably. Text suddenly changing kerning (see the login button state change in Flutterfolio for an example), scroll jank, weird interaction responsiveness, white screen while loading... Seems fundamental.

2

u/dan-danny-daniel Mar 05 '21

I think people are looking at this all wrong. Yes, Flutter has a very specific niche on the web (so niche, in my opinion, it’s stupid to even maintain it). Some are saying that it shouldn’t be stable because the Flutter web performance is terrible.

The Flutter team moving Flutter web to stable is an admission that Flutter web won’t get better. It is not production ready, and it won’t be for a long time. It’s for testing mobile apps online, that’s it. I have a recent, decent laptop (i7, 16gb of RAM, GeForce processor) and fast wifi (>25mb/s), and the Flutter Plasma website takes 20 seconds to load and works at 1 frame per second.

The thing I loved about Flutter was accessibility in the sense that I can develop for almost any device. Flutter supports iOS 8, meaning I can develop apps that look great and still work on the iPhone 4S. Seriously, an iPhone 4S. Flutter web is the complete other end of the spectrum. I’d need a supercomputer to run the same app on Flutter web. The focus should be more on desktop, and adding desktop support to packages. I mean, Flutter’s not going very far, at all, on web, but Flutter desktop has so much potential. I mean, if Flutter focuses on desktop, Electron will be eradicated. It’s disappointing that so much focus is directed in the wrong direction.

2

u/Mgladiethor Mar 04 '21

Canvaskit is faster

2

u/bradofingo Mar 04 '21

Simply put: Flutter Web is to create web apps and we all wanted Flutter Web to be the next framework to revamp the web like jQuery, Angular and React did.

I am disappointed as of you are.

1

u/techsupremacy Mar 06 '21

Stable means the API won't change in the nearest future. That means if you use a class and/or a method it won't be deprecated and abandoned in the next version and everything will work at least the same way.

It doesn't mean the product is perfect :)

It will get better in time the same way as the Flutter mobile does.

Especially consider that the mobile devices become crazy more powerful each year and the internet speed improves as well. That's the future. Stop thinking HTML centric.

1

u/[deleted] Mar 04 '21

You can choose HTML renderer for a public website.

And Flutter allows to write big web app without any JS/HTML/CSS line !

1

u/xShadowRecruit Mar 05 '21

It only means that the version of flutter desktop which is on 'stable' channel is actually stable. All unstable features are on its version on other channels. Once they get fixed, they'll be shipped to stable branch too.

This how it has been with flutter from the start. Everything works, but only the most bug-free version gets to be on stable branch.

1

u/[deleted] Mar 04 '21

I think it would be nice if flutter focuses on rendering ui on native platforms rather than making things worse just to add web semi-compatibility. Maybe in future browsers will let us to use workspace as we want so we can draw freely on browsers (canvases aren't that usable for rendering entire website, also I mean browsers would let us use low level rendering functions, in the end flutter renderer is a fork of chrome so maybe they can make sure flutter can render natively on chrome window but that would be possible in far future).

1

u/RyanTheLionHearMeRor Mar 04 '21

The scrolling experience on mobile is "off" too

For instance, compare scrolling in a native iphone app vs flutter app, the flutter app feels slightly off. And that's because it is. It's not native. The question is, can you and your users live with that?

Honestly I have mixed feelings about it, it'll never seem fully natural. But with that being said, it's not all that bad either.

Either way, I still choose to adopt flutter as I enjoy coding in it too much

4

u/Hixie Mar 04 '21

If you have cases where the exact same experience implemented with Swift does not have the exact same scrolling experience as when built with Flutter, please file a bug. We have a tool we use to overlap the two and calculate the scroll parameters and last we checked flutter was spot on, so any counter evidence would be super useful.

2

u/RyanTheLionHearMeRor Mar 04 '21

I think there's a very small input lag with user interactions (Swiping, scrolling, etc).

It's especially noticable when first starting to scroll from a stopped state

It's like flutter can't track my thumb as fast as native scroll views on the initial touch down and scroll

Overall interacting with views (widgets), takes more effort if that makes sense. It's not a buttery, glass like, seamless experience that iphone users expect

Again it's very slight and minor, but it's noticable to me

I don't think users mind if the app is infrequently used (like the apps I'm building). But if the app were an every day app like Instagram or YouTube, this would have to be addressed as users expect perfection

2

u/Hixie Mar 04 '21

Sounds like maybe you want to change the dragStartBehavior?

1

u/RyanTheLionHearMeRor Mar 04 '21

I guess? If that fixes the input delay then yes

1

u/Hixie Mar 04 '21

Please do try it and let me know. If it doesn't, definitely file a bug.

1

u/RyanTheLionHearMeRor Mar 08 '21 edited Mar 08 '21

This can't be fixed by the app developer. It has to be fixed at the framework level

1

u/Hixie Mar 08 '21

The first step is determining if it does fix it. Without knowing if it does, there's no way to determine what a framework fix would be. This is not something we have had anyone file a bug with reproducible steps for yet, so we can't fix it yet even if we wanted to.

1

u/c_glib Mar 05 '21

Can you please elaborate on this a bit? What do you think the grandparent post is doing wrong and why change in dragStartBehavior would be required to fix the problem?

4

u/Hixie Mar 05 '21

I don't think they're doing anything wrong per se.

Flutter supports two types of drag start behaviour. These apply when, when the finger touches the screen, we cannot immediately disambiguate the touch between a drag and some other gesture (such as a tap).

The first type of drag start behaviour is "down" and means that as soon as we detect that the finger has come down on the screen, we should record that coordinate, and if we later decide it's a drag, we should apply the drag starting from that location. The other is "start", and that says that we should wait until the drag has been clearly determined to be a drag before we record the start position.

With "down", if you scroll, you get a little jump at the start (because we don't actually start dragging right away since we don't know if it's a drag yet), but the drag will follow your finger so it doesn't feel like there's any "lag". With "start" there's effectively a little resistance because you have to move the finger enough that we're confident it's a drag before we start moving, but on the other hand there's no "jump", it's smooth. That's the default.

All of this only applies when there's ambiguity, so the other option would be to make sure that the scrollable isn't listening for some other gesture. For example, if you have a vertical list view inside a horizontal page view, you would experience this because we have to wait a little bit to figure out if the user is dragging vertically or horizontally. If you have a button in a list view and you drag from the button you'd have the same thing.

This is all assuming that this is the cause of the original report. It may not be; maybe this is some bug I've not heard of before.

1

u/ftgander Mar 05 '21

It’s been smooth for me so far, gallery included. It’s strange how people have different experiences like this, some people scream “look how janky it is!” but I see no jank in their examples. Maybe I just have bad eyes.

-20

u/[deleted] Mar 04 '21

Flutter web might not be perfect, but it's still way better than react/vue/angular whatever. I think it works great at least for the sites I've done. No complaints and I"m glad I didn't have to use JS/HTML/CSS.

14

u/zach6t7 Mar 04 '21

Better? No complaints?

I'm a big fan of Flutter but I have a hard time believing that, to be honest. I'm curious what were your use cases?

5

u/Nauzet Mar 04 '21

in my opinion (I've only used flutter web for my portfolio), the development is way way way way better than js/html/css, but the result... it's not. The basic functionality of scrolling is a mess and you don't want to visit that web again.

1

u/zach6t7 Mar 04 '21

Gotcha. Thanks for the reply!

1

u/Nauzet Mar 04 '21

I'm not the user you answered. just giving my opinion :P

2

u/zach6t7 Mar 04 '21

Oh damn 😂 I need medical attention

6

u/damiano-ferrari Mar 04 '21

Well, it depends by what you are doing. The frameworks you mentioned are way better than flutter for websites (especially for SEO). For web apps ok

3

u/lnkprk114 Mar 04 '21

Even for web apps this feels like a tough pill for me to swallow. The performance difference between other web apps and flutter web apps is just night and day.

It's weird, there's this awkward feeling when you embed a web app in a native mobile app. Things feel...weird. I get the exact same feeling using flutter web apps. It just feels so off.

4

u/Selentest Mar 04 '21

better than react/vue/angular

In what way, lol? That's literally impossible

8

u/[deleted] Mar 04 '21

[removed] — view removed comment

4

u/mintwurm Mar 04 '21

Haha 😂

Yea that might be the best explanation to be had here.