Flutter is Google’s open-source UI toolkit, used for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase.
Original author(s):
Google.Developer(s):
Google and community.Written in:
C, C++, Dart.Platform:
Android, iOS, Google Fuchsia, Web platform, Windows, macOS and Linux.Type:
Application framework.License:
New BSD License.The following are the main features which make flutter better framework.
Flutter’s hot reload feature helps you quickly and easily experiment, build UIs, add features, and fix bugs.
The Flutter framework automatically rebuilds the widget tree, allowing you to quickly view the effects of your changes.
Flutter uses Just In Time compilation, allowing for "hot reload", with which modifications to source files can be injected into a running application
Flutter apps are compiled with ahead-of-time (AOT
) compilation on both Android and iOS.
Helps to build rich motion APIs, smooth natural scrolling.
Material Design uses more grid-based layouts, responsive animations and transitions, padding, and depth effects such as lighting and shadows.
Ios-flavor widgets supports to design app on IOS
platforms.
Flutter’s widgets incorporate all critical platform differences such as scrolling, navigation, icons and fonts to provide full native performance on both iOS
and Android
.
How to run flutter code in DartPad?
import 'package:flutter/material.dart';
void main() {
runApp(
Center(
child: Text(
'Welcome to flutter app!',
textDirection: TextDirection.ltr,
),
),
);
}
Here’s what this program uses that applies to all (or almost all) Flutter apps:
runApp()
function takes the given Widget
and makes it the root of the widget tree.Center
widget and its child, the Text
widget.ltr
The text flows from left to right.Execute Flutter Code
Use dartPad to execute the code.