text
stringlengths 1
474
|
---|
managed and rendered by Flutter’s framework and engine. |
You can browse a catalog of Flutter’s widgets.We believe that the end result is higher quality apps. |
If we reused the built-in platform widgets, |
the quality and performance of Flutter apps would be limited |
by the flexibility and quality of those widgets.In Android, for example, there’s a hard-coded set |
of gestures and fixed rules for disambiguating them. |
In Flutter, you can write your own gesture recognizer |
that is a first class participant in the gesture system. |
Moreover, two widgets authored by different people can |
coordinate to disambiguate gestures.Modern app design trends point towards designers and |
users wanting more motion-rich UIs and brand-first designs. |
In order to achieve that level of customized, beautiful design, |
Flutter is architectured to drive pixels instead |
of the built-in widgets.By using the same renderer, framework, and set of widgets, |
it’s easier to publish for multiple platforms from the same |
codebase, without having to do careful and costly planning |
to align different feature sets and API characteristics.By using a single language, a single framework, |
and a single set of libraries for all of your code |
(regardless if your UI is different for each platform or not), |
we also aim to help lower app development and maintenance costs.<topic_end> |
<topic_start> |
What happens when my mobile OS updates and introduces new widgets? |
The Flutter team watches the adoption and demand for new mobile |
widgets from iOS and Android, and aims to work with the community |
to build support for new widgets. This work might come in the form |
of lower-level framework features, new composable widgets, |
or new widget implementations.Flutter’s layered architecture is designed to support numerous |
widget libraries, and we encourage and support the community in |
building and maintaining widget libraries.<topic_end> |
<topic_start> |
What happens when my mobile OS updates and introduces new platform capabilities? |
Flutter’s interop and plugin system is designed to allow |
developers to access new mobile OS features and capabilities |
immediately. Developers don’t have to wait for the Flutter team |
to expose the new mobile OS capability.<topic_end> |
<topic_start> |
What operating systems can I use to build a Flutter app? |
Flutter supports development using Linux, macOS, ChromeOS, |
and Windows.<topic_end> |
<topic_start> |
What language is Flutter written in? |
Dart, a fast-growing modern language optimized |
for client apps. The underlying graphics framework |
and the Dart virtual machine are implemented in C/C++.<topic_end> |
<topic_start> |
Why did Flutter choose to use Dart? |
During the initial development phase, |
the Flutter team looked at a lot of |
languages and runtimes, and ultimately |
adopted Dart for the framework and widgets. |
Flutter used four primary dimensions for evaluation, |
and considered the needs of framework authors, |
developers, and end users. We found many languages |
met some requirements, but Dart scored highly on |
all of our evaluation dimensions and met all our |
requirements and criteria.Dart runtimes and compilers support the combination of |
two critical features for Flutter: a JIT-based fast |
development cycle that allows for shape changing and |
stateful hot reloads in a language with types, |
plus an Ahead-of-Time compiler that emits efficient |
ARM code for fast startup and predictable performance of |
production deployments.In addition, we have the opportunity to work closely |
with the Dart community, which is actively investing |
resources in improving Dart for use in Flutter. For |
example, when we adopted Dart, |
the language didn’t have an ahead-of-time |
toolchain for producing native binaries, |
which is instrumental in achieving predictable, |
high performance, but now the language does because the Dart team |
built it for Flutter. Similarly, the Dart VM has |
previously been optimized for throughput but the |
team is now optimizing the VM for latency, which is more |
important for Flutter’s workload.Dart scores highly for us on the following primary criteria:<topic_end> |
<topic_start> |
Can Flutter run any Dart code? |
Flutter can run Dart code that doesn’t directly or |
transitively import dart:mirrors or dart:html.<topic_end> |
<topic_start> |
How big is the Flutter engine? |
In March 2021, we measured the download size of a |
minimal Flutter app (no Material Components, |
just a single Center widget, built with flutter build |
apk --split-per-abi), bundled and compressed as a release APK, |
to be approximately 4.3 MB for ARM32, and 4.8 MB for ARM64.On ARM32, the core engine is approximately 3.4 MB |
(compressed), the framework + app code is approximately |
765 KB (compressed), the LICENSE file is 58 KB |
(compressed), and necessary Java code (classes.dex) |
is 120 KB (compressed).In ARM64, the core engine is approximately 4.0 MB |
(compressed), the framework + app code is approximately |
659 KB (compressed), the LICENSE file is 58 KB |
(compressed), and necessary Java code (classes.dex) |
is 120 KB (compressed).These numbers were measured using apkanalyzer, |
which is also built into Android Studio.On iOS, a release IPA of the same app has a download |
size of 10.9 MB on an iPhone X, as reported by Apple’s |
App Store Connect. The IPA is larger than the APK mainly |
because Apple encrypts binaries within the IPA, making the |
compression less efficient (see the |
iOS App Store Specific Considerations |
section of Apple’s QA1795).info Note |
The release engine binary used to include LLVM IR (bitcode). |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.