Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror
×
Google

Flutter 2: Google's Toolkit For Developers Takes a Big Step Forward (zdnet.com) 22

An anonymous reader quotes a report from ZDNet: Google has announced Flutter 2, a major upgrade to its framework for building user interfaces for mobile, the web and desktop. Flutter promises to allow developers to use the same codebase to build native apps for iOS, Android, Windows 10, macOS, and Linux and for the web on browsers including Chrome, Firefox, Safari or Edge. It can also be embedded in an IoT device with a screen, such as cars, TVs, and home appliances.

The move to Flutter 2 promises to benefit the over 150,000 Flutter Android apps already available on the Play Store. Every app will get a free upgrade with Flutter 2 allowing developers to target desktop and web without rewriting them. Google apps now built with Flutter include Google Pay, Stadia and Google Nest Hub among others. Flutter 2 also brings production quality support for the web, with a focus on progressive web apps (PWAs) that behave like desktop apps, single page apps, and mobile apps on the web. Google has added a new CanvasKit-powered rendering engine built with WebAssembly. For mobile web apps, in recent months it's added autofill, control over address bar URLs and routing, and PWA manifests.

For desktop browsers, it has added interactive scrollbars and keyboard shortcuts, increased the default content density in desktop modes, and added screen reader support for accessibility on Windows, macOS and ChromeOS. Google has been working with Ubuntu maker Canonical to bring Flutter to the desktop. Canonical will make Flutter the default choice for future desktop and mobile apps it creates. Microsoft is also releasing contributions to the Flutter engine that supports foldable Android devices, such as the Microsoft Surface Duo.

This discussion has been archived. No new comments can be posted.

Flutter 2: Google's Toolkit For Developers Takes a Big Step Forward

Comments Filter:
  • by dhuv ( 241988 ) on Friday March 05, 2021 @08:40AM (#61126658) Homepage

    Nest is ~170MB on iOS, YouTube is 220MB. For comparison, apps like Simplenote are ~18MB, Zoom is ~80 and WhatsApp is ~90.

    I realize there is a difference in functionality but it can't be that much. I am shocked at how large some of the banking apps are. I decided to delete them from my phone, I will just sign onto the web. Kinda ridiculous but I guess nobody really cares about the size as long as they have good internet speeds.

    • by bjwest ( 14070 )
      Once the apps are installed, there's no need to worry about the size, it's not like you're downloading them every time you run the app.
    • Most of that size is nothing to do with the app or the underlying framework itself. Quite frequently they are shipped with lots of often unused resources such as videos, animations, or other bullshit that's either shown to the user once or not at all.
      This bloat is there regardless of what fancy framework a program uses, and the size of Nest and youtube was huge long before flutter came along.

    • Flutter runtime is about 8MB. The rest is market wanketeering videos and resources that some suit thought was a good idea.
  • by davide marney ( 231845 ) on Friday March 05, 2021 @08:44AM (#61126664) Journal

    On the one hand, who could possibly complain about being able to take advantage of so much expertise and investment -- at virtually zero cost to oneself? In a very real sense, the entire Internet ecosystem is just one ginormous pile of lock-ins. In for a penny as they say...

    But this is Google. They have a direct financial interest in everyone adopting their tools not because the tools are merely good for their own sake (which no doubt they are), but because they serve Google's interests over time. Note there's a Google Ads SDK provided as part of the package, so you can seamlessly serve up advertising right in the heart of your apps. Very convenient; and I would expect no less.

    This lack of separation of qui bono concerns -- who benefits -- makes me think twice. It is unlike Linux, for example. I don't expect that by adopting Linux I'm going to specifically benefit a particular business. Perhaps that just naivety. Maybe everything is "for sale" and that's OK because people have mortgages to pay.

    Still.

  • "Increasing the default content density in desktop modes" sounds nice, but I bet desktop apps built with this still will look very mobile-y.
    Call me old-fashioned if you want but I still think that applications need a specifically designed UI to be the best they can be on desktops.
    • Call me old-fashioned if you want but I still think that applications need a specifically designed UI to be the best they can be on desktops.

      While you're right, apps don't need to be the best they can be to be useful. Sometimes I just want a simple tool, other times I want a complex one.

      • Right. It's not very important that a calculator has a mobile-first UI but on a complex tool that would be atrocious
  • by Parker Lewis ( 999165 ) on Friday March 05, 2021 @09:56AM (#61126876)
    In a quick search throw the linked blog post, I cannot find any mention to compatibility with existing Flutter v1 code. Hope it's compatible. If not, they'll repeat same "mistake" as with angular2.
  • Flutter & Dart is the first stack that comes close to what Flash & ActionScript 2 had to offer in terms of zero-fuss cross-platform development. I've been observing this pair for a few years now and it seems that Flutter is only gaining traction. Nice. Like it. Not ready to seriously try it out yet, but it sure looks promising.

  • Scrollbars being touted as a feature in 2021?
    What a time to be alive!

    Yes, they mean actual scrollbars
    - https://github.com/flutter/flu... [github.com]
    - https://hobbister.com/2020/11/... [hobbister.com]

In the long run, every program becomes rococco, and then rubble. -- Alan Perlis

Working...