0% found this document useful (0 votes)
3 views

Flutter in short keyword

Flutter is Google's Mobile SDK for building native iOS and Android apps from a single codebase using Widgets, which are structural elements with specific functionalities. There are two types of Widgets: Stateless and Stateful, and Flutter offers advantages over other technologies like React Native and Kotlin in terms of code reusability and performance. The main function serves as the entry point for the application, where the runApp() function is used to display the root widget on the screen.

Uploaded by

DINESH TIWARI
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Flutter in short keyword

Flutter is Google's Mobile SDK for building native iOS and Android apps from a single codebase using Widgets, which are structural elements with specific functionalities. There are two types of Widgets: Stateless and Stateful, and Flutter offers advantages over other technologies like React Native and Kotlin in terms of code reusability and performance. The main function serves as the entry point for the application, where the runApp() function is used to display the root widget on the screen.

Uploaded by

DINESH TIWARI
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

Flutter is Google’s Mobile SDK to build native iOS and Android apps from a single
codebase.

2. The blocks with which the flutter apps are built are called Widgets.

3. They are structural elements that ship with a bunch of material design-specific
functionalities.

4. Each of the Widgets handle one particular job. That is the reason why Flutter
developers tend to think of their flutter app as a tree of widgets.

5. Flutter Widgets are of two types:

a) Stateless Widgets.
b) Stateful Widgets.

6. Compared to other technologies like React Native, Kotlin, and Java, Flutter is much
better in regard to having a Single Codebase for Android and iOS, Reusable UI and
Business Logic, high compatibility, performance, and productivity.

Importing important packages require to connect Flutter and Dart


import 'package:flutter/material.dart';

Main Function – Entry point of the program


void main() {}
Giving command to runApp () to run the app. The purpose of the runApp () function is
to attach the given widget to the screen.
runApp(const MyApp());

Widget is used to create UI in flutter framework.


StatelessWidget is a widget, which does not maintain any state of the widget.
MyApp extends StatelessWidget and overrides its build method.
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);

This widget is the root of your application.


@override
Widget build(BuildContext context) {
return MaterialApp(

Inner UI of the application


home: const MyHomePage(title: 'Home page'),

You might also like