r/FlutterDev • • Jan 24 '23

Article What’s new in Flutter 3.7

https://medium.com/flutter/whats-new-in-flutter-3-7-38cbea71133c
196 Upvotes

30 comments sorted by

36

u/[deleted] Jan 24 '23

Ooohhhh, those Context and Menu Bar widgets look dope. Should be super useful for desktop apps

20

u/[deleted] Jan 24 '23

Hm I thought they would have saved this for tomorrow after the Flutter Forward event 🤔 anyway happy to see more improvements!

11

u/ren3f Jan 25 '23

They did tell that flutter forward was about the future of Flutter, so makes sense to already publish this before.

The roadmap is still not published https://github.com/flutter/flutter/wiki/Roadmap

5

u/Hixie Jan 25 '23

published now!

13

u/eibaan Jan 24 '23

I would have bet they would have used 4.0 instead of 3.7. But regardless of the version number, there are some nice – although minor – improvements, especially I welcome the MenuBar and AnimatedGrid widgets.

5

u/[deleted] Jan 25 '23

4 might be full material 3 support

3

u/bradofingo Jan 25 '23

and Dart 3

1

u/[deleted] Jan 25 '23

and Impeller stable

9

u/Formal_Afternoon8263 Jan 24 '23

Mfw looking at the material 3 on the table:

15

u/satvikpendem Jan 24 '23

Excited for the anti-jank and general smoothness improvements, such as the macOS scrolling, compiling shaders, as well as Impeller.

Using shaders directly in Flutter for 2D and 3D scenes could be very useful too, for animations and other types of effects.

7

u/anlumo Jan 24 '23

The context menus appear to not work on the web, which is especially weird since they have Dartpads on this documentation page that just don't do anything.

2

u/Hixie Jan 25 '23

please file an issue

1

u/anlumo Jan 25 '23

Done.

I suspect that it's simply not implemented for the Web at all, so the team should be aware of that, though.

1

u/Hixie Jan 26 '23

I wouldn't have expected anything special to be needed for it to work on web, that's sort of the point of Flutter. 😅

1

u/anlumo Jan 26 '23

On the web, the application has to make sure to call event.preventDefault() on the contextmenu event, otherwise the browser is going to show the context menu. I think not doing that also causes the click event to not be sent, because the focus is on the context menu in that situation.

However, that shouldn't affect long clicks (which also don't do anything), so there's something weird going on.

7

u/firatcetiner Jan 24 '23

where metaprogramming

3

u/[deleted] Jan 24 '23

[removed] — view removed comment

5

u/mraleph Jan 24 '23

No, it is not in Dart 3.

6

u/[deleted] Jan 24 '23

[removed] — view removed comment

13

u/mraleph Jan 25 '23

To be more precise it _might_ be coming after Dart 3. It might come in a completely different form compared to what you see currently specified and partially prototyped. It might take 1-2 years to cross the finish line. It might not come at all if we hit some road blocks (e.g. significant regressions in developer experience might be one example).

That's why it is not in Dart 3 - we choose to prioritise features that we are actually guaranteed to ship in this time frame and which are known to significantly improve developer experience with the language.

[context: I am a senior technical lead on the Dart team, so I have first hand knowledge about this]

1

u/pattobrien Jan 25 '23

Appreciate the honesty and transparency here. I've seen people just "assume" SMP will come in Dart 3.1, after the above Dart 3 article was published.. I guess its best not to get any hopes up at this point.

1

u/ChristianKl Jan 26 '23

Did you learn anything in the current development of it that makes you fear significant regressions in developer experience?

2

u/mraleph Jan 26 '23

Not yet - initial results were rather positive, we tested various simple scenarios using CFE prototype implementation - and performance characteristics were acceptable. But overall the implementations (especially analyzer one) were not far enough to be completely be sure about the end result.

1

u/fichti Jan 26 '23

Now Platform Channels can be invoked from any Isolate

That's pretty amazing not gonna lie.

-15

u/Ill-Practice9177 Jan 24 '23

3

u/Kuroodo Jan 25 '23

Have you tried using AsyncTask?

1

u/Maherr11 Jan 25 '23

Ikr, my app is completely stutter free now it’s amazing

0

u/[deleted] Jan 25 '23

[deleted]