text
stringlengths
1
474
<topic_end>
<topic_start>
What is inside the Flutter SDK?
Flutter includes:<topic_end>
<topic_start>
Does Flutter work with any editors or IDEs?
We provide plugins for VS Code,
Android Studio, and IntelliJ IDEA.
See editor configuration for setup details,
and VS Code and Android Studio/IntelliJ
for tips on how to use the plugins.Alternatively, you can use the flutter command
from a terminal, along with one
of the many editors that support editing Dart.<topic_end>
<topic_start>
Does Flutter come with a framework?
Yes! Flutter ships with a modern react-style framework.
Flutter’s framework is designed to be layered and
customizable (and optional). Developers can choose to
use only parts of the framework, or even replace
upper layers of the framework entirely.<topic_end>
<topic_start>
Does Flutter come with widgets?
Yes! Flutter ships with a set of
high-quality Material Design and Cupertino
(iOS-style) widgets, layouts, and themes.
Of course, these widgets are only a starting point.
Flutter is designed to make it easy to create your own
widgets, or customize the existing widgets.<topic_end>
<topic_start>
Does Flutter support Material Design?
Yes! The Flutter and Material teams collaborate closely,
and Material is fully supported. For more information,
check out the Material 2 and Material 3 widgets
in the widget catalog.<topic_end>
<topic_start>
Does Flutter come with a testing framework?
Yes, Flutter provides APIs for writing unit and
integration tests. Learn more about testing with Flutter.We use our own testing capabilities to test our SDK,
and we measure our test coverage on every commit.<topic_end>
<topic_start>
Does Flutter come with debugging tools?
Yes, Flutter comes with Flutter DevTools (also
called Dart DevTools). For more information, see
Debugging with Flutter and the Flutter DevTools docs.<topic_end>
<topic_start>
Does Flutter come with a dependency injection framework?
We don’t ship with an opinionated solution,
but there are a variety of packages that offer
dependency injection and service location,
such as injectable, get_it, kiwi, and riverpod.<topic_end>
<topic_start>
Technology
<topic_end>
<topic_start>
What technology is Flutter built with?
Flutter is built with C, C++, Dart,
Skia (a 2D rendering engine),
and Impeller (the default rendering engine on iOS).
See this architecture diagram
for a better picture of the main components.
For a more detailed description of the layered architecture
of Flutter, read the architectural overview.<topic_end>
<topic_start>
How does Flutter run my code on Android?
The engine’s C and C++ code are compiled with Android’s NDK.
The Dart code (both the SDK’s and yours)
are ahead-of-time (AOT) compiled into native, 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 compiled Flutter and app code.
This is similar to the way many game engines work.During debug mode, Flutter uses a virtual machine (VM)
to run its code in order to enable stateful hot reload,
a feature that lets you make changes to your running code
without recompilation. You’ll see a “debug” banner in
the top right-hand corner of your app when running in this mode,
to remind you that performance is not characteristic of
the finished release app.<topic_end>
<topic_start>
How does Flutter run my code on iOS?
The engine’s C and C++ code are compiled with LLVM.
The Dart code (both the SDK’s and yours)
are ahead-of-time (AOT) compiled into a native, ARM library.
That library is included in a “runner” iOS project,
and the whole thing is built into an .ipa.
When launched, the app loads the Flutter library.
Any rendering, input or event handling, and so on,
are delegated to the compiled Flutter and app code.
This is similar to the way many game engines work.During debug mode, Flutter uses a virtual machine (VM)
to run its code in order to enable stateful hot reload,
a feature that lets you make changes to your
running code without recompilation. You’ll see
a “debug” banner in the top right-hand corner of
your app when running in this mode, to remind you that
performance is not characteristic of the finished release app.<topic_end>
<topic_start>
Does Flutter use my operating system’s built-in platform widgets?
No. Instead, Flutter provides a set of widgets
(including Material Design and Cupertino (iOS-styled) widgets),