Introduction to flutter
Flutter is an open-source UI software development kit created by Google.
It is used to develop applications for Android, iOS, Windows, Mac,
Linux, and the web.
The major components of Flutter include:
- Dart platform
- Flutter engine
- Foundation library
- Design-specific widgets
A Hello, World program in Flutter looks like this:
import 'package:flutter/material.dart';
void main() => runApp(HelloWorldApp());
class HelloWorldApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
title: 'Hello World App',
home: Scaffold(
appBar: AppBar(
title: Text('Hello World App'),
),
body: Center(
child: Text('Hello World'),
),
),
);
}
}
Comments
Post a Comment