mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Changes the interaction between the view controller and engine in both the C API and the engine API, so that there's always an engine (as on other platforms) rather than the engine APIs being specific to headless mode. While adjusting the C API, this does a large cleanup: - Renames all methods to follow a `FlutterDesktop` (prefix) + "class" name + method-style name. E.g., `FlutterDestkopViewControllerCreate` rather than `FlutterDesktopCreateViewController`. This makes it easier to see what functions operate on which conceptual "object" in the API. - Reorders and groups them by the object they operate on. Fixes https://github.com/flutter/flutter/issues/61966
This code is intended to be built into plugins and applications to provide higher-level, C++ abstractions for interacting with the Flutter library. Over time, the goal is to move more of this code into the library in a way that provides a usable ABI (e.g., does not use standard library in the interfaces). Note that this wrapper is still in early stages. Expect significant churn in both the APIs and the structure of the wrapper (e.g., the exact set of files that need to be built).