Flutter is an open-source UI software development kit created by Google. It can be used to develop cross platform applications from a single codebase for the web,[4] Fuchsia, Android, iOS, Linux, macOS, and Windows.[5] First described in 2015,[6][7] Flutter was released in May 2017. Flutter is used internally by Google in apps such as Google Pay[8][9] and Google Earth[10][11] as well as other software developers including ByteDance[12][13] and Alibaba.[14][15].Flutter ships applications with its own rendering engine which directly outputs pixel data to the screen.[16][17] This is in contrast to many other UI frameworks that rely on the target platform to provide a rendering engine, such as native Android apps which rely on the device-level Android SDK or React Native which dynamically uses the target platform's built-in UI stack. Flutter's control of its rendering pipeline simplifies multi-platform support as identical UI code can be used for all target platforms.[17].
ARCHITECTURE
The basic component in a Flutter program is a "widget", which can in turn consist of other widgets.[18] A widget describes the logic, interaction, and design of a UI element with an implementation similar to React.[18] Unlike other cross-platform toolkits such as React Native and Xamarin which draw widgets using native platform components, Flutter renders widgets itself on a per-pixel basis. Flutter has two types of widgets: stateless and stateful. Stateless widgets only update if their inputs change, meaning they otherwise won't need to be rebuilt when other elements of the screen change, while stateful widgets can call the setState() method to update an internal state and redraw.[18][19] Although widgets are the primary method of constructing Flutter applications, they can also be bypassed in favor of directly drawing on a canvas. This feature has been occasionally used to implement game engines in Flutter.[20]
The Flutter framework contains two sets of widgets that conform to specific design languages: Material Design widgets implement Google's design language of the same name, and Cupertino widgets implement Apple's iOS Human interface guidelines.[21][22] Flutter allows the developer to use either set of widgets on either platform. Developers can use Cupertino widgets on Android.
Flutter apps are written in the Dart language. Release versions of Flutter apps on all platforms use ahead-of-time (AOT) compilation[23] except for on the Web where code is transpiled to JavaScript or WebAssembly.[24][25] Flutter inherits Dart's Pub package manager and software repository, which allows users to publish and use custom packages as well as Flutter-specific plugins.[26] The Foundation library, written in Dart, provides basic classes and functions that are used to construct applications using Flutter, such as APIs to communicate with the engine.[22][27]
Flutter's engine, written primarily in C++, provides low-level rendering support using either Google's Skia graphics library or the custom "Impeller" graphics layer, which is enabled by default on iOS and is in beta on Android.[28][29][30] The engine interfaces with platform-specific SDKs such as those provided by Android and iOS to implement features like accessibility, file and network I/O, native plugin support, etc.[22].
HISTORY
The first version of Flutter was known as "Sky" and ran on the Android operating system.[31] It was unveiled at the 2015 Dart developer summit with the stated intent of being able to render consistently at 120 frames per second.[31] On December 4, 2018, Flutter 1.0 was released at the Flutter conference in London.[32]
On May 6, 2020, the Dart software development kit (SDK) version 2.8 and Flutter 1.17.0 were released, adding support for the Metal API.[33]
On March 3, 2021, Google released Flutter 2 during an online Flutter Engage event.[8][34] It added a Canvas-based renderer for web in addition to the HTML-based renderer and early-access desktop application support for Windows, macOS, and Linux.[34][8] It also shipped with Dart 2.0 which included support for null-safety.[8][35] Null safety was initially optional as it was a breaking change and was made mandatory in Dart 3 released in 2023.[35][36]
On May 12, 2022, Flutter 3 and Dart 2.17 were released with support for all desktop platforms as stable.[37]
On October 27, 2024, a number of Flutter community developers announced Flock, a fork of Flutter intended to be easier to contribute to while still keeping in sync with all changes made in the upstream code base.[38][39].
Flutter is an open-source framework from Google that allows developers to create cross-platform applications for mobile, desktop, and web browsers from a single codebase:
Features
Flutter uses its own rendering engine to output pixel data to the screen, which simplifies multi-platform support. It also integrates with Google services like Firebase, Google Ads, Google Play, Google Pay, Google Wallet, and Google Maps.
Benefits
Flutter is stable and reliable, and is used by Google, well-known brands, and a community of global developers. It's also free and works with existing code.
How to get started
To create your first Flutter app, you can:
Open the command palette in Visual Studio Code
Type "flutter new"
Select the Flutter: New Project command
Select Application and then a folder to create your project in
Name your project
Select Yes when the modal window asks whether to trust the contents of the folder
You can also check out these resources for more information about Flutter:
Udemy: Offers a course on learning Flutter and Dart to build apps for iOS and Android
Google Codelabs: Offers a tutorial on building your first Flutter app
コメント