Flutter is an open-source mobile application development framework created by Google. It is used to develop application for Android and iOS, as well as being the primary method of creating application for Google Fuchsia.
History
The first version of Flutter was known as "Sky" and ran on the Android Operating system. It was unveiled at the 2015 Dart developer summit, with the started intent of being able to render consistently at 120 frames per second.
During the keynote of Google Developer Days in Shanghai, Google announced Flutter Release Preview 2 which is the last big release before Flutter 1.0. On December 4th 2018, Flutter 1.0 was released at the Flutter Live event, denoting the first "stable" version of the framework.
Framework Architecture :
The major components of Flutter include :
- Dart platform
- Flutter engine
- Foundation Library
- Design-specific widgets
Dart Platform :
Flutter apps are written in theDart language and make use of many of the language's more advanced features.
On Android, and on Windows macOS and Linux via the semi-official flutter Desktop Embedding project, Flutter runs in the Dart virtual machine features a just-in-time execution engine. Due to App Store restrictions on dynamic code execution, Flutter apps use ahead-of-time (AOT) compilation on iOS.
A notable feature of the Dart platform its support for "hot reload" where modifications to source files can be injected into a running application. Flutter extends this with support for stateful hot reload, where in most cases changes to source code can be reflected immediately in the running app without requiring a restart or any loss of state. This feature as implementation in flutter gas received widespread praise.
Flutter Engine :
Flutter's engine, written primarily in C++, provides low level rendering support using Google's Skia graphics library. Additionally. it interfaces with platform-specific SDKs such as those provided by Android and iOS. The Flutter Engine is a portable runtime for hosting Flutter applications. It implements Flutter's core libraries, including animation and graphics, file and network I/O, accessibility support, plugin architecture, and a Dart runtime and compile toolchain, Most developers will interact with Flutter via the Flutter Framework, which provides a modern, receive framework, and a rich set of platform, layout and foundation widgets.
Foundation Library :
The foundation library, written in Dart, provides basic classes and functions which are used to construct application using Flutter, such as APIs to communicate with the engine.
Design-specific widgets :
The Flutter framework contains two sets of widget which conform to specific design languages. Material Design widgets implement Google's design language of the same name, and Cupertino widgets Imitate Apple's iOS design. .