r/FlutterDev • • Nov 15 '23

Article Flutter 3.16 now available

https://medium.com/flutter/whats-new-in-flutter-3-16-dba6cb1015d1

Material 3 by default, Impeller preview for Android, DevTools extensions, and much more

184 Upvotes

53 comments sorted by

47

u/Maherr11 Nov 15 '23

great to see tons of performance improvements.

14

u/[deleted] Nov 15 '23

Very nice ! I am still very much looking for web improvements

3

u/5picy5ugar Nov 16 '23

When will that be?

16

u/[deleted] Nov 16 '23

Wasm is made great progress as per the last Dart update, hopefully 3.19 !

-4

u/5picy5ugar Nov 16 '23

So will flutter mature enough in web improvements to be on par with react js by version 3.19?

28

u/Bhallu_ Nov 16 '23

It may never be on par with react.js. React uses html elements to show stuff on screen while flutter draws on canvas. This has it's own limitations and benefits.

1

u/Lr6PpueGL7bu9hI Nov 16 '23

If you are looking for a flutter-like way to create websites that perform like react, check out the jaspr framework for dart.

7

u/5picy5ugar Nov 16 '23

I want to create my mobile apps in flutter and also website. Single cose base and cross platform. I would really like not to switch the website to sth other framework. I want to stick with flutter

2

u/Lr6PpueGL7bu9hI Nov 16 '23

If you are trying to make a web-app or cross-compile your flutter app for web, then stick with flutter. If you want a website to show off your app but that is not itself your app, use jaspr. If you have proper separation of frontend ui and business logic, you can still share half of your codebase. This is actually similar to react anyway since react js is not the same as react native. So you would have to write the UI twice if you use react anyway.

1

u/5picy5ugar Nov 16 '23

I am not really a coder myself. But i wield very important vote on which framework web and mobile our apps are gonna be. For mobile i am sure flutter is the way to go but for web i am receiving conflicting reports about security not being very good with flutter and then libraries are not enough and being limited on the web support for devs etc. Our apps will have a selfcare and eshop and a lot of integration behind to support many customer operations with subscription plans, accesories and huge customer base on backend systems like billing, crm, network systems etc.

1

u/Lr6PpueGL7bu9hI Nov 16 '23

My personal opinion at this time is that there are no widely used frameworks which target both mobile and web successfully enough to feel truly native on both without at least maintaining two different frontend codebases. Backend code and frontend business logic is pretty easy to share at this point but when it comes to rendering ui, you're going to be compromising on one side or the other either in dev time or user experience.

Edit: I am very curious what you've heard regarding flutter web security. That should be pretty exactly on par with any other web technology mostly because there isn't much range there. Developers either write securely or they don't. Browsers are out of your hands and the frameworks themselves don't generally have an impact.

→ More replies (0)

8

u/kiwigothic Nov 16 '23

Be careful with this upgrade, the most breaking changes since null-safety, I've had to downgrade for now.

6

u/[deleted] Nov 16 '23

Only if you never use Material3 before, I use it for 4 months already since the Flutter team made it clear long time ago that we should switch to it.

I have 2 apps in production (Android/Ios/Web) and after a careful check nothing broke in my apps.

Could you be more specific on your issues ?

6

u/kiwigothic Nov 16 '23

my issues are with 3rd party packages, mostly to do with text rendering it seems.. I'm just having a bad morning, rapid progress is one of the best things about Flutter, sometimes things break.

2

u/o_Zion_o Nov 16 '23 edited Nov 16 '23

Yeah, similar situation here. I'd have preferred a deprecation instead of a removal for that TextScaler change. At least give it a version between removal, so that package maintainers have a chance to update. So many packages are broken now as a result, meaning you're unable to update if you use any such packages.

auto_size_text for instance hasn't seen an update in 2 years... So unless someone forks it, it's unusable going forward.

I'd do it, but I'm unable to take the support load that maintaining such a plugin would consume.

The absolute worst part about this change is when you get the associated error about it when building, it doesn't tell you where the error originated from. Even if you include my app + packages when debugging, so you have no choice but to trawl through each and every plugins source code that you use to find out if they are affected by the change.

If anyone knows of a way to quickly find out if a plugin uses any features that require the TextScaler change, I'd love to hear it.

I guess one way would be to change every package reference in pubspec to point to the packages github repo instead, or manually clone each package to a local folder and import them by path instead. That's still tedious though...

5

u/fingermaestro Nov 16 '23

The default material 3 really mess up my app UI. I had to downgrade to the previous version. Is there a way to turn off material 3?

4

u/[deleted] Nov 16 '23

Yes you can opt out, in your theme data : useMaterial3: false

4

u/s00prtr00pr Nov 16 '23

Some changes happened anyway, such as TextSelectionTheme unresponsive to your theme values.. out of nowhere lmao.

4

u/kiwigothic Nov 16 '23

Quite the breaking change

1

u/[deleted] Nov 19 '23

It says so in the first few lines of the article

51

u/discohead Nov 15 '23

11

u/bartektartanus Nov 16 '23

Non-null promotion! Great news, now I have some code to simplify. :)

26

u/o_Zion_o Nov 16 '23

Just a heads up, the TextScaler change breaks a lot of packages on pub.dev (like auto_size_text).

So if your project depends on plugins like that, you'll have to hold off on updating until the affected packages are updated.

1

u/virtualmnemonic Nov 18 '23

Auto_size_text_plus works fine for me on both iOS and Android.

1

u/o_Zion_o Nov 18 '23

On flutter 3.16?

1

u/virtualmnemonic Nov 18 '23

Yes

1

u/o_Zion_o Nov 18 '23

I'll give it a try then. Thanks 👍

11

u/Gears6 Nov 15 '23

Anyone know how Google does the versioning on Flutter?

I saw branches/tags for 3.14 and 3.15, but it seems they just jumped to 3.16.

18

u/jonah_williams Nov 15 '23

3.14, 3.15 were betas that were never promoted to stable. In general, there is a stable once a quarter, and about 3 minor versions per quarter. The next stable will probably be 3.19, just based on some napkin math.

2

u/eibaan Nov 15 '23

I can't tell, but if you look at the beta channel, there were 3.16 versions published since October (and they just published a 3.17 beta yesterday). My guess: They just promote a beta version to stable four times a year.

20

u/eibaan Nov 15 '23

My personal favorites: Double click + drag (which I use all the time with other apps) and macOS video support (to better test iOS apps without the simulator).

5

u/[deleted] Nov 16 '23

[removed] — view removed comment

5

u/eibaan Nov 16 '23

I like to use the macos configuration to run apps on my mac instead of using ios and run them inside a launched Simulator. Its faster to launch and I can freely resize the window to test different "screen sizes" (I have an iPhone widget that wraps itself around a Scaffold if it detects macOS and which offers different sizes and orientations).

Until now, because the video package didn't support the macos platform, testing video features was impossible and I had to switch back to a real device.

1

u/devutils Nov 16 '23

Yep, we do the same but on Linux, load times are even faster than on Mac (no XCode).
BTW. For videos I can recommend this project (https://pub.dev/packages/media_kit). We use that on all platforms, mobile, desktop and even web and are pretty happy. Dev is very active and responsive.

29

u/Loris156 Nov 15 '23

Wow! Great to see Google using Flutter in one of their flagship products (Earth) and some smaller apps. Hoping Flutter will live on for a long time then.

2

u/bartturner Nov 16 '23

They use it for how they make a lot of their money. Flutter was used for the UI for the site that advertisers use.

5

u/bartturner Nov 16 '23

I have found Flutter already pretty performant. So surprised to see Google found areas to improve so much.

Really good to see.

2

u/[deleted] Nov 19 '23

This framework is absolutely on fire! It’s still making leaps faster than Android native. REALLY impressed

-4

u/omykronbr Nov 16 '23

And on medium

What a joke.

10

u/ideology_boi Nov 16 '23

I agree, it's a trash platform and it's blocked in my country, kind of annoying having to turn on a vpn just to read a changelog

13

u/Sethu_Senthil Nov 16 '23

I always wondered why they post it on medium… they r literally Google can’t do it better?

6

u/omykronbr Nov 16 '23

And not like they don't own a blog platform to begin with (blogger)...

9

u/NatoBoram Nov 16 '23

To be fair, Blogger is shite and no one would be seeing it if it was there

That said, they do have… a website. One that's dedicated to Flutter. With a .dev domain extension.

1

u/el_topu Nov 16 '23

I hope testing has been improved

4

u/eibaan Nov 16 '23

What aspect of testing needs improvement in your opinion?

25

u/[deleted] Nov 15 '23

[removed] — view removed comment

7

u/DerDave Nov 16 '23

Why do you think so? I think the percentiles graph has this huge drop,because they switched the testing device to a faster one. Or are you referring to something different?

15

u/jonah_williams Nov 16 '23

Hi, Flutter team member here
The switch to a faster device was a one time drop in the Android chart, not the iOS chart or 90/99 percentile performance chart. This drop can be seen with the change in color.

In some benchmarks, Impeller on iOS is twice as fast as it was on the spring. And Impeller on Android is more than twice as fast as when we started working on it. That doesn't mean its twice as fast as the current Skia backend, sometimes its faster, sometimes its slower. But we've made great progress over the past few months, and we're going to keep this progress up in 2024.

2

u/DerDave Nov 16 '23

Amazing! Thanks for your great work! Looking forward to the development over the next years!