News for hackers. Stuff that matters.
Re:Flutter is the most popular cross-platform mobile SDK by voiture_rapide on Tuesday February 22, 2022 @08:46AM (#30427834)
Flutter Web exists and works reasonably well.
Re:Flutter is the most popular cross-platform mobile SDK by gernb on Tuesday February 22, 2022 @11:12AM (#30429635)
No, it doesn't. Try dealing with accessibility, emoji, screen readers, non-English languages. The people in charge left all of that "TBD" and now they've backed themselves into on unsolvable corner with their "render everything to a canvas". They didn't understand what they were dong. The web apps feel like Swing in Java.

Type some CJK in here and watch as each letter appears 500ms late, or try to bring up the emoji input on MacOS

https://flutter.github.io/samples/web/form_app/#/form_widget...

Re:Flutter is the most popular cross-platform mobile SDK by BakeInBeens on Tuesday February 22, 2022 @12:00PM (#30430364)
The emoji input does work on Chrome OS
Re:Flutter is the most popular cross-platform mobile SDK by ohgodplsno on Tuesday February 22, 2022 @09:04AM (#30428019)
>Reasonably well

Rendering to a canvas does not "work reasonably well", unless you want to go back to Flash days (but controlled by google this time)

Re:Flutter is the most popular cross-platform mobile SDK by saurik on Tuesday February 22, 2022 @10:47AM (#30429328)
That's a philosophical issue, not a functionality one: something can work reasonably well even if you hate the world that results.

(And I sadly just can't buy the philosophical issue anyway, frankly: if anything, I'd argue the biggest flaw with the web is it has a million nit-picky features when it should ONLY offer JavaScript+canvas, as third parties have a hope of reimplementing that correctly, unlike HTML+CSS. To the extent to which there were important behaviors people liked, such as accessibility, those should come from higher-level frameworks instead of being baked into the lowest level of the system.)

Re:Flutter is the most popular cross-platform mobile SDK by aseipp on Tuesday February 22, 2022 @11:50AM (#30430194)
This is a strange position considering I would rank the JavaScript engine as, bar none, the most complex and difficult part of the entire browser stack to develop and keep maintained, and it continues to grow and become more and more complex along with the runtimes implementing it, which were already incredibly complex by design.

> behaviors people liked, such as accessibility

lol

Re:Flutter is the most popular cross-platform mobile SDK by saurik on Wednesday February 23, 2022 @07:44AM (#30440371)
I don't disagree--though I know people, including myself, who have managed to pull off either all of or most of the work required alone--and so in an argument about the JavaScript engine I would argue it should be a VM only, such as WebAssembly.

(As for accessibility, I appreciate you might find my wording funny, but it isn't a laughing matter really.)

Re:Flutter is the most popular cross-platform mobile SDK by evv on Tuesday February 22, 2022 @11:10AM (#30429596)
> I'd argue the biggest flaw with the web is it has a million nit-picky features when it should ONLY offer JavaScript+canvas

That would break the web, though? One of the biggest _strengths_ of the web is backwards compatibility.. I, for one, am grateful to use modern browsers to consume older content and apps.

Re:Flutter is the most popular cross-platform mobile SDK by saurik on Wednesday February 23, 2022 @07:45AM (#30440381)
This is a "the web made a fatal mistake in the past and should have done X" argument and not a "the web should now do X" argument, though if you want a forward-looking suggestion we need to immediately stop adding NEW behaviors.
Re:Flutter is the most popular cross-platform mobile SDK by ohgodplsno on Tuesday February 22, 2022 @11:07AM (#30429559)
accessibility is not a behavior that "people liked". It is enshrined in law in so many countries that they _have_ to be at the lowest level of the system.
Re:Flutter is the most popular cross-platform mobile SDK by saurik on Wednesday February 23, 2022 @07:50AM (#30440412)
I would argue it was enshrined in law because people liked it so much they demanded it, so maybe that's a semantics issue? That said, I do not believe the law insists that it be in the lowest level: the law merely insists that it exist for every site. It is convenient to put it at the lowest level if possible, but now it is just one more thing that literally every browser has to implement from scratch, and so the world that results is that the only company capable of making a good web browser is Google. There are sane reasons why accessibility is not considered part of a CPU (and thereby by most other reasonable runtime engines).
Re:Flutter is the most popular cross-platform mobile SDK by ohgodplsno on Wednesday February 23, 2022 @09:26AM (#30441273)
People with reading disabilities, vision issues, etc are rarely the ones being heavily represented in parliaments. Accessibility is truly a case of things being earned through spilled blood, and while there's probably much fewer people dying because they can't read the text on your website, it's a natural extension of the physical world. While the laws do not say that it should be up to the browser, it becomes natural that this moves to the lowest common denominator. Should it not be part of browsers, the moment any dominant browser comes in (say, Chrome) and implements it would lead to thousands of websites relying on this behavior from the browser, leading to "Works only on Chrome" situations, and other browsers most likely rushing behind to also support that feature.
Re:Flutter is the most popular cross-platform mobile SDK by pjmlp on Tuesday February 22, 2022 @09:28AM (#30428299)
Therein lies the future, thanks WebAssembly.

Blazor, Uno, Qt, Yew, Flutter,....

Re:Flutter is the most popular cross-platform mobile SDK by samwillis on Tuesday February 22, 2022 @09:36AM (#30428383)
Although WASM is brilliant, I don't think its right to use it to recreate the whole UI drawn to canvas. You loose all accessibility integration with the OS either locking out users or making your life much harder reimplementing it. WASM is perfect for graphics and backend processing, see Figma it uses WASM for drawing the canvas but the rest of the ui is native web with all the accessibility tools that come with the browser/os.
Re:Flutter is the most popular cross-platform mobile SDK by pjmlp on Tuesday February 22, 2022 @11:01AM (#30429511)
My life was made much harder when Flash and Silverlight like tooling was taken away.

The craziness of faking UIs with paragraph tags massaged via CSS and JavaScript into a drop down menu.

Now they are back, even Google Docs is moving into it.

Re:Flutter is the most popular cross-platform mobile SDK by jms55 on Tuesday February 22, 2022 @09:45AM (#30428518)
Yew doesn't use the canvas, it uses the DOM iirc.
Re:Flutter is the most popular cross-platform mobile SDK by gernb on Tuesday February 22, 2022 @11:13AM (#30429646)
Re:Flutter is the most popular cross-platform mobile SDK by kitkat_new on Tuesday February 22, 2022 @12:27PM (#30430717)
He talks about Yew [0], and you link to flutter?

[0] https://yew.rs/

Re:Flutter is the most popular cross-platform mobile SDK by gernb on Wednesday February 23, 2022 @04:59AM (#30439517)
Sorry.
Re:Flutter is the most popular cross-platform mobile SDK by pjmlp on Tuesday February 22, 2022 @11:04AM (#30429532)
I stand corrected on that one.
Re:Flutter is the most popular cross-platform mobile SDK by samwillis on Tuesday February 22, 2022 @08:49AM (#30427857)
True, although if you are trying to build a cross platform app where the web is a major part of it, I wouldn't even look at the Flutter and default to Capacitor.
Re:Flutter is the most popular cross-platform mobile SDK by wiseowise on Wednesday February 23, 2022 @03:21AM (#30438903)
If by reasonably well you mean barely hits 20 fps on Desktop and unusable on mobile then sure, it works reasonably well.