Start the conversation

From 2D Toolkit to 3D Engine: The Story Behind Flutter Scene

Flutter Scene creator Brandon DeRosier on how Flutter went from a 2D UI toolkit to a framework where a full 3D engine is one package away, on Very Good Engineering.

Share

Listen to the episode Brandon DeRosier on Flutter Scene: Building 3D into Flutter

For years, Flutter described itself as a 2D UI toolkit. Teams that needed 3D could get it, but only through platform views and workarounds. Today a full 3D engine is one flutter pub add away. In this episode of Very Good Engineering, host Jorge Coca talks with Brandon DeRosier, the creator of Flutter Scene, about how that happened, what teams are building with it, and when a different engine is still the better choice.

About Brandon DeRosier

Brandon worked on Impeller, Flutter’s rendering engine, and designed the first prototype of Flutter GPU, the graphics API that Flutter Scene is built on. Some of the C++ code in the first version of 3D in Flutter, including the animation system, came from a personal game engine he had written a couple of years earlier. Today he works on Flutter Scene independently and full-time.

What Is Flutter Scene? A 3D Engine for Flutter Apps

Add Flutter Scene to an app and you get what Brandon calls “a complete batteries-included game engine that can scale way down to a simple model viewer and scale way up to large open-world game experiences,” with physics, audio, and the rest of what a team needs to ship.

The package now sees tens of thousands of downloads, and Brandon admits he no longer knows everything people are doing with it. The uses he does know about range widely: a used car marketplace working to replace its Filament-based engine with a virtual garage of customizable cars, an iridescent card pack opening experience, an infotainment system and instrument cluster for vehicles, and an app for caring for a virtual pet bird in a stylized 3D world. Community members have built a voxel engine and an entity component system package with example games, and published a package for VRM avatar models. Someone in the community Discord works on architectural visualization, and another developer forked the Flutter engine to run Flutter Scene in VR.

Where 3D in Flutter Started

3D came up in the earliest conversations about Impeller, before the team had started building it. Brandon and a few others saw a pattern among users: teams were using Flutter as the interface layer on top of their Unity games. Flutter’s declarative widgets handle complex UI well, and complex UI is still a struggle in popular commercial game engines.

Brandon points to mobile casual games as the clearest case. Most of a game like Subway Surfers is UI: rewards screens, challenges, box openings, and purchases in several currencies. He estimates the 3D gameplay itself is about 5% of the app. So 3D in Flutter started from user need, but it also had plenty of precedent among application frameworks. “It’s Flutter’s answer to Apple’s SceneKit,” Brandon says of the original idea.

What made it possible was Impeller itself. To translate rendering operations to each graphics backend, the team built a hardware abstraction layer, something Flutter had never had before. With it in place, a 3D renderer could be built on the same foundation as the 2D one.

From Impeller Scene to Flutter GPU

The first version, Impeller Scene, was a C++ module inside the Flutter engine. Brandon calls that the path of least resistance, with plenty of precedent behind it. The plan was to ship a built-in 3D engine to everyone using the Flutter SDK, which the Flutter team would build out and maintain.

He also saw the problems with it. It was a large scope increase for the Flutter team, and any 3D engine built that way would end up “super opinionated and inherently exclusionary to a whole bunch of use cases.” At the same time, the team was getting many requests to extend Flutter’s 2D rendering in ways that fit awkwardly into the 2D canvas API. So Brandon stepped back and started designing what became Flutter GPU, with the goal of solving every advanced rendering use case by letting the community build its own renderers.

The name has a story of its own. It was first called Impeller Dart, and the prototype package Dart GPU, until the Dart team, who already regretted dart:ui, asked him not to. Flutter GPU, which Flutter 3.24 previewed, is now the graphics API built into the Flutter SDK, and Flutter Scene uses it for all of its rendering. Most app developers will never touch it directly, Brandon notes; they will use a package built on top of it.

The Reaction to the First 3D Demo

When 3D rendering with Impeller was first previewed, around Flutter Forward in 2023, the reception was overwhelmingly positive. Brandon describes “the flood of emails and DMs on Twitter that’s just not stopped since.” People went as far as building their own custom version of the Flutter engine just to try the preliminary 3D package.

That effort told him it was time to make 3D production-ready: get it into a form the Flutter engine team would be comfortable shipping, surface the hardware abstraction layer, and port it to Dart. He started meeting regularly with prominent Flutter users who were struggling to integrate other 3D solutions, to collect their use cases and point his work at their problems.

Why Platform Views Fell Short for 3D

Brandon is direct about Flutter’s old reputation. Being seen as a 2D-only framework was “earned and deserved,” he says, because Flutter offered no direct path to 3D. “Flutter is an SDK. It’s a library and a set of tools. It’s not a platform that’s intentionally restricting you from anything.” In a pinch, teams could get 3D working, but the frictions made those solutions less than ideal.

He walks through the costs of embedding a web view, Unity, or another platform view for 3D content while Flutter draws the UI:

  • Communication: every message has to be serialized and interpreted on the other side, as if talking to a separate worker.
  • Debugging: the 3D content runs in a different environment, with its own debugging and profiling tools, apart from the rest of the Flutter app.
  • Overhead: separate rendering contexts mean resources have to be synchronized under the hood, an overhead that cannot be optimized away.

Why didn’t Flutter support 3D from the start with Skia? Brandon defers the deepest history to the framework’s earliest architects, such as Adam Barth, Ian Hickson, and Eric Seidel, but offers his view: Flutter set out to replace native application SDKs, which were rarely used for 3D apps and games, while Unity quickly came to dominate 3D mobile games. Flutter’s scope was already large enough.

3D Beyond Games

When people hear 3D, Jorge notes, they think of games. Brandon says most of what he sees people use Flutter Scene for is practical: maps, onboarding experiences, and automotive dashboards. Jorge shares an example from VGV’s own work: a vehicle dashboard demo (not production software) shown at automotive conferences, running Flutter Scene on a Raspberry Pi 5 with 1 GB of memory, which surprised visitors who had seen the same demo months earlier without 3D.

For design and product teams deciding where 3D belongs, Brandon’s advice starts from how people perceive the world. “We live in a 3D world, and 3D is just very intuitive to us.” Even on 2D screens, he sees ample room for 3D visualizations and interfaces that are less about spectacle and more about practical understanding and absorbing information.

Performance on Constrained Hardware

Flutter now runs on far more than phones, including set-top boxes, kiosks, and vehicles. Brandon calls performance a work in progress that keeps improving. New Flutter GPU features keep landing to improve performance, with more gains coming in memory management and fewer allocations. Flutter Scene recently gained a reduced shader set and a quality setting that adjusts resolutions and other quality knobs automatically, the way other engines handle constrained hardware.

“You’re never going to ship something that’s running on a Raspberry Pi 5 that has the entire post-processing stack enabled,” he says, “but you can still get something that looks pretty awesome.” If a team hits a performance issue on a particular device, he asks them to file an issue. His desk is full of phones, because every time someone reports a problem, he buys another one.

Flutter Scene vs. Unity: When Each Fits

Brandon’s answer to “should we use Flutter Scene?” is candid. It is particularly well suited to a game or app that needs a complex UI, which benefits from Flutter’s widgets and declarative style, where the 3D is the reason people show up. It also has strong agent tooling: for teams using AI agents to build prototypes, he says “it’s probably hard to do better than Scene right now.”

Where it falls short today is tooling for artists. Flutter Scene has an editor, but Brandon calls it light on functionality. A large art team that wants to spend its days inside an editor is better off with a commercial engine like Unity or Unreal, for now.

The longer-term goal is broader. A year from now, Brandon wants Flutter Scene to be “the 3D engine of Flutter,” something that gives teams everything they need without leaving the ecosystem. “You should be able to build anything that you can build using a commercial proprietary game engine like Unity inside of the Flutter ecosystem. That’s sort of its mandate.”

Keeping Flutter Scene Sustainable

Jorge raises a fair concern: the Flutter community has seen promising projects stall. Brandon’s answer is that Flutter Scene has been in progress for a couple of years and is moving faster than ever. “Pretty much anything that could have happened to discourage me from working on this has already happened, and I’m still here working on it.”

He now works on it independently and full-time, and runs a sponsorship program to support it. Individual sponsorships are public, and companies interested in sponsoring the project, including co-marketing, can reach out to him for a sponsorship prospectus.

Lightning Round: Gaussian Splats, Sound, and AI Agents

The episode closes with quick questions:

  • Favorite Flutter package he didn’t build: flutter_soloud, the sound library that was also the first audio integration for Flutter Scene.
  • Most underrated Flutter Scene feature: Gaussian splats, and in particular using regular physically based rendering (PBR) inside a Gaussian splat scene. Capture a real place from a set of photos, then place your own product inside it.
  • Most fun and most painful effect to build: both appear in the “materialize” example. Glowing lines sweeping across a model’s surface are easy in most engines. Breaking a model into individual triangles that dissolve into the air was “mega annoying” the first time, though Flutter Scene now has tools for it.
  • One change to the Flutter ecosystem: make it easier to contribute upstream to the Flutter engine, something he hears the Flutter team is taking seriously.
  • AI agents in graphics programming: “a second democratizing of game development,” after the first one that came with engines like Unity. A child can now write a renderer by talking to a chatbot, even if it is not a renderer you would ship. Craft still matters, he adds, since generated content often has an obvious “AI sheen,” so he doesn’t see AI putting product people and designers out of work.
  • The most common 3D feature in a Flutter app a year from now: product viewers, and tools that let people configure a product, more than maps, because many teams simply need a model viewer that shows off their products.

Brandon admits he can’t predict where Flutter Scene will be in six months. Each month he finds himself optimizing for use cases he hadn’t considered the month before. To keep up with that work, Jorge recommends following Brandon on X and LinkedIn, where he shares much of what he builds with Flutter Scene.

Get our insights

Get the next post in your inbox, written by the team that shipped the work.

From the VGV unicorns

Frequently Asked Questions

What is Flutter Scene?

Flutter Scene is a 3D engine for Flutter apps, added as a single package. Its creator, Brandon DeRosier, describes it as a batteries-included game engine that scales from a simple model viewer up to large open-world games. It ships with physics and audio.

What is Flutter GPU?

Flutter GPU is the graphics API built into the Flutter SDK. It lets developers write their own renderers on top of Impeller's hardware abstraction layer, and Flutter Scene uses it for all of its rendering. Most app developers will never call it directly; they will use a package built on it.

Why did 3D in Flutter move out of the Flutter engine?

The first version, Impeller Scene, was a C++ module inside the engine, meant as Flutter's answer to Apple's SceneKit. Keeping it there would have been a large scope increase for the Flutter team, and any built-in 3D engine would be opinionated in ways that excluded many use cases. Flutter GPU instead lets the community build any renderer, and Flutter Scene is one of them.

Is Flutter Scene only for games?

No. Teams are using it for a virtual car garage, vehicle infotainment systems and instrument clusters, card pack openings, and architectural visualization. Brandon expects the most common 3D feature in a Flutter app a year from now to be a product viewer or product configurator.

When should a team choose Unity or Unreal instead of Flutter Scene?

When a large art team wants to spend most of its time inside a full-featured editor, which Flutter Scene does not offer yet. Flutter Scene fits best when an app or game needs a complex Flutter UI with 3D at its core, and when a team builds prototypes with AI agents, where its agent tooling is strong.
Laura Hughes Lekhi Director of Business Development
Greg Laird Senior Business Development Executive

We’ll care about your success as much as you do.

Our unicorns read every message and reply, usually the same day.

Start the conversation

A 30-minute call about what you’re building.