gpt4 book ai didi

android - 每个 Flutter 应用都包含 Flutter 引擎吗?

转载 作者:行者123 更新时间:2023-12-03 03:14:05 25 4
gpt4 key购买 nike

我正在尝试从 Flutter 网站消化以下信息。

How does Flutter run my code on Android?

The engine’s C and C++ code are compiled with Android’s NDK. The Dartcode (both the SDK’s and yours) are ahead-of-time (AOT) compiled intonative, ARM, and x86 libraries. Those libraries are included in a“runner” Android project, and the whole thing is built into an APK.When launched, the app loads the Flutter library. Any rendering,input, or event handling, and so on, is delegated to the compiledFlutter and app code. This is similar to the way many game engineswork.

每个 Flutter 应用(更准确地说是使用 Flutter 创建的每个 Android 应用)是否都附带 Flutter 引擎?

最佳答案

是的,它包含在每个应用程序中。 Android/iOS 上的应用程序之间不存在代码共享。此外,每个应用程序都可以有不同版本的引擎(取决于编译时间)

请注意,随着即将推出的 Flutter 1.0,开销(在 Android 上)不到 5M,这还不错。我相信 iOS 上的开销是相似的。

关于android - 每个 Flutter 应用都包含 Flutter 引擎吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63904127/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com