flutter में Hello world App कैसे बनायें ?
How To Create Simple Hello World Project in Flutter ?

Today We are learn How to code for Simple Hello World Project in Flutter. So lets Starts code without Spending Time.
- import 'package:flutter/material.dart';
- void main() => runApp(MyApp());
- class MyApp extends StatelessWidget {
- // This widget is the root of your application.
- @override
- Widget build(BuildContext context) {
- return MaterialApp(
- title: 'Hello World Flutter Application',
- theme: ThemeData(
- // This is the theme of your application.
- primarySwatch: Colors.blue,
- ),
- home: MyHomePage(title: 'Home page'),
- );
- }
- }
- class MyHomePage extends StatelessWidget {
- MyHomePage({Key key, this.title}) : super(key: key);
- // This widget is the home page of your application.
- final String title;
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: Text(this.title),
- ),
- body: Center(
- child: Text('Hello World'),
- ),
- );
- }
- }
Comments
Post a Comment