r/FlutterDev • • Feb 15 '24

Article Flutter roadmap for 2024

https://github.com/flutter/flutter/wiki/Roadmap
107 Upvotes

26 comments sorted by

17

u/eibaan Feb 15 '24

It's great that there's a roadmap but at the same time, its quite telling that nearly all points are "continue the work on ..." I'd have liked that some work items get actually finished. So, its basically the same as last year.

And I'd have prioritized multiple windows support for desktop version instead of iOS/Android. While I know that you can use multiple screens in scenarios like attaching an tvOS or cromecast/Android TV device, that's probably something for a smaller group of developers than creating desktop apps with more than one window.

18

u/b0bm4rl3y Feb 15 '24

I think you misunderstood the roadmap - desktop is still very much the focus for multiple windows. We'd just like to expand multi-view support to mobile as well.

5

u/eibaan Feb 15 '24

I see. That's good to know.

27

u/toastytheloafdog Feb 15 '24

Heck yeah, I was JUST wondering when they'd publish the 2024 roadmap.

Personal Highlights & Takeaways:

  • More Impeller work

  • Resuming work on hot reload for web

  • Macros expected to get first phase release

  • "...if we discover unmitigable architectural issues [with macros], abandon the effort"

Really surprised to see that last one. The cynic in me says they've already FOUND some issues and they're just warning us in advance that this whole thing might not pan out.

Personal 2024 Wishlist

  • Windows support in the in_app_purchase package.

  • Windows support in Firebase packages (I think they're close, but last I checked it still wasn't quite ready).

  • Impeller improving performance of drawing polygons with many points (when compared to Skia). Canvas.drawPath performs terribly, especially on Android and Windows, and I'm running out of ideas for how to get around it.

21

u/eibaan Feb 15 '24 edited Feb 15 '24

Really surprised to see that last one.

Frankly, they spent a lot of time and effort on macros and in hindsight, it might have been cheaper (timewise) to add support for serialization, data classes and functional wrappers directly to the Dart compiler, similar to the way Swift did it initially.

5

u/toastytheloafdog Feb 15 '24

Ah, great point. Now that I'm used to JsonSerializable and Freezed I don't mind them too much, but I'd love to have a more tightly integrated approach to serialization and copyWith constructors built into Dart itself.

12

u/jonah_williams Feb 16 '24 edited Feb 16 '24

If you take a look at the Impeller roadmap in "Whats new in 3.19" article, we talk a bit about plans to improve performance of arbitrary paths. The TLDR is that we have a few different approaches we're trying, from more extensive caching of the tessellated geometry to a stencil then cover approach. All of these are being actively worked on, so I can't make any promises as to how long it will take - or whether or not we'll hit obstacles along the way.

3

u/toastytheloafdog Feb 16 '24

Hey Jonah, thanks for the heads up. Fingers crossed those updates pan out, improving this one thing will make Flutter much more viable for my company's particular use case.

1

u/ark4579 Feb 15 '24

Ummm last i checked firebase packages supported windows.

6

u/toastytheloafdog Feb 15 '24

I tried a few weeks ago, and the command line tools to set up a new firebase project did not create the appropriate and necessary configurations for Windows.

Edit: Also, their documentation didn't list any of the steps for Windows, only iOS, Android and Web.

0

u/[deleted] Feb 16 '24

[deleted]

9

u/toastytheloafdog Feb 16 '24

Oh, they won't cut support for MacOS. I was talking about macros, which is an upcoming dart language feature. 

10

u/oravecz Feb 15 '24

I would be so happy to see Swift Package Manager support, but the umbrella issue for that has stalled many months (years?) ago. Our organization can’t securely support CocoaPods, so SPM is the only way we will support Flutter targeting iOS/Mac.

7

u/eibaan Feb 15 '24

Don't hold your breath. Switching to SPM would require all packages to also switch (or some build tool magic to automagically rewrite all custom Podfiles), I think. But I haven't studied the design document yet.

10

u/InternalServerError7 Feb 16 '24

My Wish List:

- Give me macros

- Make native easier

- Give tons of support to the "flutter_rust_bridge"

- Improve consistency in support across deployment targets

9

u/oravecz Feb 15 '24

I find the most interesting thing is it is edited by Hixie, and includes a mention of a vague continuing of his blank canvas project. Hixie resigned late last year, so I would of expected this to be written by the current Product Owner if there is one. Tim Sneath also resigned last year.

13

u/eibaan Feb 15 '24

Hixie also announced that he intended to continue to work on Flutter and so he does. AFAIK he's still the technical lead and I'm sure the Flutter team doesn't mind that he's still around… there are a lot of directors and managers still at Google, for example the one who published the Flutter 3.19 announcement.

4

u/andyclap Feb 15 '24

Always good to see these plans shared publicly, albeit we all know to take them with a pinch of realism.

The bit I liked wasn't a key feature, just supporting 3rd party library development to improve their quality. The wild west of react native libraries is what motivated us to adopt flutter in the first place.

1

u/Full-Run4124 Feb 16 '24

Any idea what happened to the 3D GL context widget ("Scene"?) they showed last year?

1

u/anlumo Feb 16 '24

Damn, the one thing I really want (#117937) isn't on there…

1

u/alwerr Feb 16 '24

What about embed native code using SwiftUi and compose?

1

u/Thelystra Feb 16 '24

finaly they are trying seo for web. good new

0

u/[deleted] Feb 16 '24

[deleted]

23

u/b0bm4rl3y Feb 16 '24

Hey there, I'm from the Flutter desktop team. We're still heavily investing in desktop! There's ~5 Google employees and several Canonical employees working full-time on desktop. We also get some great desktop contributions from the community (like Superlist!). However, multi-window and platform views are large undertakings that will take time to get right.

As for Impeller, desktop support is something we'll likely do later. The Impeller team is focusing on mobile first as mobile phones tend to be less powerful and performance improvements are more impactful. Keep in mind that Skia is an excellent graphics library and beating its performance takes serious work!

2

u/esDotDev Feb 17 '24

I really hope the team prioritizes platform views here over multi-window support. Platform views create all kinds of issues for a large percentage of apps, whether it's oauth support, maps plugins, youtube videos it really creates a lot of headaches for a developer trying to build a cross platform app. And we've been waiting on it for years now.

Multi-window support on the other hand is super esoteric and probably only used by .1% of apps.

3

u/b0bm4rl3y Feb 17 '24

Multi-window unlocks more than just desktop scenarios!

Consider all the Google apps that use Flutter. Google Pay, YouTube Create, Classroom, etc… what do they all have in common? These were all complete rewrites or brand new apps.

Flutter has been very successful for folks creating new apps or doing a full app rewrites. However, Flutter hasn’t been as successful getting large native apps to migrate incrementally to Flutter.

Why is that? There’s several problems, but one major one is that Flutter is limited to a single view today. What do you do if you want to stack a Flutter screen on top of a native screen on top of another Flutter screen? Or what if you want native tabs where two separate screens contain Flutter content? These are solvable today but it’s not easy.

With multiple windows, we’ll unlock the ability to have multiple views, which will make it much easier to migrate large apps to Flutter. 

0

u/megromby Feb 20 '24

Multi-window support on the other hand is super esoteric and probably only used by .1% of apps.

What an absurd and obviously false statement. Virtually every significant app I use (browsers, Office apps, IDEs, editors, terminals, graphic design apps, etc., etc.) have multiple windows, and it would be incredibly frustrating to use any of them if they didn't have multiple windows. I simply wouldn't use them if they didn't support multiple windows.