News for hackers. Stuff that matters.
Re:Flutter seems to be having bad times internally by wg0 on Friday November 24, 2023 @02:55AM (#38401567)
Flutter has three major problems:

- Performance: Even on Desktop, animations have jank. Last I compiled samples on Mac, the problem was visibly there.

- UX: Text editing immediately feels alien. If Mac for example, you have a text field in a native app and on the side you have a flutter app with a text field, you can tell the difference between the "feel" when you type in each. This isn't necessarily limited to text fields alone.

- Web: surely is possible but you have to dumb down your application so much. You cannot use libraries from JS ecosystem so lot is left on the table. Imagine High Charts, d3.js and such. Say goodbye to them when you're on Flutter Web.

Lastly, from the tone of it, seems like Flutter is on the way to join Google Reader and such. Gradually.

Re:Flutter seems to be having bad times internally by zigzag312 on Friday November 24, 2023 @04:31AM (#38402079)
- Performance: I agree it's not there yet. But it's still improving. There is currently major Skia to Impeller migration in progress. It look like Flutter should be able to reach good performance once it matures. The only long term limiting factor regarding performance is declarative architecture of Futter, which adds a bit of overhead.

- UX: Again I agree. It's not there yet. But due to Flutter being based on low level APIs, there is nothing preventing it to mimic any platform's "feel". This is also still being improved. While Flutter will UX probably never 100% match any OS's native UX, as it implements everything on it's own, it could reach the same UX quality.

- Web: IMO, Flutter weakest platform. Let's see what WasmGC support brings.

I would add fourth problem: Dart. It's not a bad language, but it is years behind with features, performance is currently the same as JS (even though it's statically-typed, AOT compiled language), ecosystem is small and it tries too hard to keep compatibility with JS target (eg. no proper unsigned 64-bit ints).

So, currently there are still some moderate issues with Flutter. But its foundations are good. It all depends on Google to keep investing in Flutter.

Re:Flutter seems to be having bad times internally by mort96 on Friday November 24, 2023 @07:03PM (#38409760)
It doesn’t matter if Flutter reaches the same UX “quality”. What matters is that it will never feel native. I agree with you that this is a fundamental problem which pretty much can’t be fixed.
Re:Flutter seems to be having bad times internally by zigzag312 on Friday November 24, 2023 @07:40PM (#38409992)
Does 100% native feel really matter that much? How often do you encounter situation where you feel your experience is worse because UI/UX isn't same as native, even though the quality of UI/UX is equal to native (not worse in any way, just different)?

Sure, consistency and familiarity matter, but IMO it's not like every deviation destroys the experience. If that were the case, UI/UX of iOS should have stayed the same since v1.0.

Re:Flutter seems to be having bad times internally by pjmlp on Friday November 24, 2023 @04:13AM (#38401960)
Fourth, it was never wanted from the Android team, with key figures like Jake Wharton having issues with it,

"Flutter is a manifestation of everything wrong with Google as a company. A language that should have (and did) fail but kept alive. Control of the two most popular platforms on the planet and failing to unify them while allowing a third to be created that actively undermines both"

https://twitter.com/JakeWharton/status/1421139368467632136

You also see this from Flutter's point of view on Tim's tweets

"That all happened, and set a bar that others had to invest heavily to compete with. Jetpack Compose was essentially a Kotlin clone of Flutter, literally to the point of translating large chunks of code."

To this day, Flutter is yet to be part of the official SDK tooling.

Re:Flutter seems to be having bad times internally by zigzag312 on Friday November 24, 2023 @05:34AM (#38402470)
Doesn't Jetpack Compose use native controls while Flutter implements its own controls?

Wrapping native controls often means being limited by a lowest common denominator in cross-platform scenarios.

Re:Flutter seems to be having bad times internally by pjmlp on Friday November 24, 2023 @05:37AM (#38402495)
Jetpack Compose is the new native controls framework for Android.

JetBrains is the one that decided to take it beyond Android.

Re:Flutter seems to be having bad times internally by zigzag312 on Friday November 24, 2023 @05:45AM (#38402572)
My mistake. I was thinking of Compose Multiplatform.

Do you think Jetpack Compose could be made multiplatform in Flutter's way (ie drawing its own controls on all platforms)?

Re:Flutter seems to be having bad times internally by pjmlp on Friday November 24, 2023 @07:00AM (#38403084)
Maybe, although as proven multiple times, that has lots of issues with platform integration.

Shortcuts don't work, accessibility doesn't work, integration with OS workflows might not work, lags behind any OS updates, there is Look but no Feel.

Re:Flutter seems to be having bad times internally by zigzag312 on Friday November 24, 2023 @08:35AM (#38403791)
Proven is a bit strong word. Shortcuts can work, accessibility can work etc. Integration with OS stuff depends on the API OS exposes. Only mimicking & integration lags behind and only after the updates that actually change platforms UX. There is nothing magic about the "feel" that can't be implemented. It is a lot more work to develop a quality framework like this though. On the plus side it can work on the platforms without desktop environment.
Re:Flutter seems to be having bad times internally by rapsey on Friday November 24, 2023 @03:14AM (#38401662)
Flutter is mainly a mobile framework. Electron owns the desktop, anyone using flutter on the web is crazy. While you're points are valid, they are kind of irrelevant.
Re:Flutter seems to be having bad times internally by wg0 on Friday November 24, 2023 @03:19AM (#38401687)
The marketing literature begs to differ.

The Google's own Family Link app even on web[0] is also a Flutter app.

[0]. https://familylink.google.com

Re:Flutter seems to be having bad times internally by vincnetas on Friday November 24, 2023 @03:23AM (#38401705)
Damn, what have we come to. I cant select text from a webpage. This is not what our grandfathers fought for :(
Re:Flutter seems to be having bad times internally by s6ro on Friday November 24, 2023 @03:56AM (#38401876)
Developers have control, if text is selectable or not. https://api.flutter.dev/flutter/material/SelectableText-clas...
Re:Flutter seems to be having bad times internally by anonymoushn on Friday November 24, 2023 @04:31AM (#38402078)
That sucks :)
Re:Flutter seems to be having bad times internally by thiht on Friday November 24, 2023 @07:39AM (#38403362)
They shouldn't.
Re:Flutter seems to be having bad times internally by mort96 on Friday November 24, 2023 @07:04PM (#38409767)
FWIW developers have control over that on the web too.

What sucks is that the non-selectable text is apparently the default.

Re:Flutter seems to be having bad times internally by devbent on Friday November 24, 2023 @03:45AM (#38401826)
That website breaks the back button, on Android...
Re:Flutter seems to be having bad times internally by anonymoushn on Friday November 24, 2023 @04:32AM (#38402083)
And on desktop Chrome!
Re:Flutter seems to be having bad times internally by drcongo on Friday November 24, 2023 @04:08AM (#38401927)
Ironically, that page just shows me "Something went wrong" which I guess proves your point somewhat.
Re:Flutter seems to be having bad times internally by rapsey on Friday November 24, 2023 @03:21AM (#38401700)
Well marketing and reality is not the same thing.
Re:Flutter seems to be having bad times internally by wg0 on Friday November 24, 2023 @03:48AM (#38401840)
Yes there's a mismatch. As a user one should dial down their expectations accordingly.
Re:Flutter seems to be having bad times internally by thiht on Friday November 24, 2023 @07:40AM (#38403372)
This is awful. Text is not selectable and the back button is broken. Nice work coming from a multi-billion $ company.
Re:Flutter seems to be having bad times internally by mort96 on Friday November 24, 2023 @07:06PM (#38409779)
Wow, the first thing I’m met with is a terribly choppy scroll rubber banding animation on a view which shouldn’t even be scrollable. Not only isn’t it 120 FPS; it doesn’t even feel close to 60.
Re:Flutter seems to be having bad times internally by sgt on Friday November 24, 2023 @03:29AM (#38401732)
There is a use case for Flutter Web and that is an extremely simple user interface such a form or a simple workflow, which can share code with e.g. a mobile app.

Other than that I agree - Flutter web is not going to be a good choice and that was never really the goal for them, I believe.

Re:Flutter seems to be having bad times internally by rapsey on Friday November 24, 2023 @03:35AM (#38401773)
Extremely simple user interface can be done in anything and code sharing is irrelevant for it though.
Re:Flutter seems to be having bad times internally by sgt on Friday November 24, 2023 @04:30AM (#38402075)
Fair enough, but if the interface is simple yet has somewhat complex validation logic, it may just make sense.
Re:Flutter seems to be having bad times internally by rokkitmensch on Friday November 24, 2023 @02:05PM (#38407066)
In that case, would be wrong with...a form?

Postback never died.

Re:Flutter seems to be having bad times internally by vincnetas on Friday November 24, 2023 @03:20AM (#38401692)
So what's the reason to pretend that you're also a web/desktop framework? This only limits you in mobile if you have to always consider web/desktop.
Re:Flutter seems to be having bad times internally by MrDresden on Friday November 24, 2023 @03:23AM (#38401706)
Frankly just the standard practice of over-promise and underdeliver, for marketing purposes.

Flutter would be far from being the first framework to do this.

Re:Flutter seems to be having bad times internally by rob74 on Friday November 24, 2023 @03:25AM (#38401718)
So then, if you want to have a really cross-platform app, ditching Flutter and using web tech for mobile too sounds like the better bet? Or, otherwise said: if Flutter is only relevant for apps, that's a pretty small niche.
Re:Flutter seems to be having bad times internally by rapsey on Friday November 24, 2023 @03:33AM (#38401762)
> if Flutter is only relevant for apps, that's a pretty small niche.

No it is not. Mobile apps are thriving. It is desktop apps that are niche now.

> ditching Flutter and using web tech for mobile too sounds like the better bet?

Quite possibly yes.

Re:Flutter seems to be having bad times internally by rob74 on Friday November 24, 2023 @03:41AM (#38401811)
I meant it's a small niche for Flutter to address only the apps that want to be cross-platform, don't want to invest into having "native" iOS and Android versions, but are Ok with using a different technology for desktop/web (or don't need those).
Re:Flutter seems to be having bad times internally by rapsey on Friday November 24, 2023 @04:01AM (#38401894)
It is not a small niche at all. A ton of things are mobile first/only.
Re:Flutter seems to be having bad times internally by pjmlp on Friday November 24, 2023 @04:17AM (#38401983)
And plenty of well known companies have discovered that mastering two native stacks is still easier and cheaper in the long run, than mastering a "cross-platform stack" framework + dealing with leaky abstractions + build integration issues + having to master the native stack anyway.

Either go mobile Web, or native.

Re:Flutter seems to be having bad times internally by SushiHippie on Friday November 24, 2023 @06:05AM (#38402710)
Yep, a good example is the element X rewrite

They use Jetpack on Android

https://github.com/vector-im/element-x-android

And SwiftUI on iOS

https://github.com/vector-im/element-x-ios

But both use the same underlying Matrix Rust SDK

https://github.com/matrix-org/matrix-rust-sdk

So they share the core part of the app between platforms, but everything user facing is native

Re:Flutter seems to be having bad times internally by candiodari on Friday November 24, 2023 @03:37AM (#38401784)
You know, this is a solved problem. Qt, for example, can easily do it (and has been able to do it for 10+ years, from microcontrollers to phones). And, just saying, QT is damn fast, a necessity if you want to work on microcontrollers of course. And yes, you can do it without royalties, without paying for QT, and in multiple languages (at least C++ and Python work pretty well).

(oh, and QT supports 3d, on the web, on android, on ios, and on desktop, even on microcontrollers if needed)

And yes, Javascript's advantage has been that it was cross-platform pretty early on. Not particularly fast though, not even decades later.

And everybody keeps pointing out the same shortcoming: these frameworks let you share a lot of code, but mostly not the actual "View" (the V in model/view/controller) code, due to screen sizes, whether the UI can be resized, extra functionality (e.g. statusbar/notifications/...)

That's why new frameworks come out, because "why can't notifications on Windows work the same as on android?". "Why not just share UI?". Unfortunately, there's very good reasons they cannot work the same ... So a couple years in, these frameworks develop the exact same problems.

Re:Flutter seems to be having bad times internally by ffgjgf1 on Friday November 24, 2023 @03:28AM (#38401731)
Then it’s not bringing something particular new or useful to the table?

Xamarin/mono already tried almost the same approach years ago and it clearly failed..

Re:Flutter seems to be having bad times internally by rapsey on Friday November 24, 2023 @03:31AM (#38401745)
Did it fail because it is impossible, because of poor execution, poor dev experience or it was simply too early? Flutter seems to be quite popular.
Re:Flutter seems to be having bad times internally by pjmlp on Friday November 24, 2023 @04:19AM (#38401997)
All these frameworks are leaky abstractions, they only avoid mastering the underlying platform as long as people stay on the happy path.
Re:Flutter seems to be having bad times internally by realusername on Friday November 24, 2023 @03:23AM (#38401707)
The web target is not completely useless, if you want to add some kind of app demo on your website, it's pretty good for that purpose.

It's not ready as a full platform though like mobile & desktop, that's for sure.

Re:Flutter seems to be having bad times internally by mikhael28 on Wednesday November 29, 2023 @02:52PM (#38464359)
Our sales team uses the web version of our mobile app to do sales presentations. It is very useful.
Re:Flutter seems to be having bad times internally by sgt on Friday November 24, 2023 @03:40AM (#38401801)
I do not see these as three major problems, simply because your arguments refer to use cases that very, very few Flutter developers actually care about. Flutter is a native mobile app framework.

I hope they solve the problems above, but it's not really anything that keeps Flutter developers awake at night.

Re:Flutter seems to be having bad times internally by benterix on Friday November 24, 2023 @05:58AM (#38402670)
> - Performance: Even on Desktop, animations have jank. Last I compiled samples on Mac, the problem was visibly there.

This problem is mentioned whenever Flutter is discussed.It's been several years already. Seriously, they have a ton of smart people there, how it's not their number one epic? Unless, well, it's an architectural problem and nothing can be done - but then why continue the project at all?

Re:Flutter seems to be having bad times internally by mikhael28 on Wednesday November 29, 2023 @02:50PM (#38464329)
We don't support the MacOS/Windows/Linux variants, but our Flutter app's web performance is amazing. I'm honestly not sure why people seem to think the performance isn't good.