r/FlutterDev • u/[deleted] • Nov 15 '23
Article Flutter 3.16 now available
https://medium.com/flutter/whats-new-in-flutter-3-16-dba6cb1015d1Material 3 by default, Impeller preview for Android, DevTools extensions, and much more
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
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
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
1
51
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
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
Nov 16 '23
[removed] — view removed comment
5
u/eibaan Nov 16 '23
I like to use the
macosconfiguration to run apps on my mac instead of usingiosand 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
macosplatform, 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
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
.devdomain extension.
1
25
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!
47
u/Maherr11 Nov 15 '23
great to see tons of performance improvements.