first flutter app

Step 01: lib/main.dart should be replaced.

import 'package:flutter/material.dart';
void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Welcome to Flutter',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Welcome to Flutter'),
        body: const Center(
          child: Text('Hello World'),

Step 02: Run the program according to your IDE’s instructions. Depending on your device, you should see Android, iOS, or web output.

App Should Look Like the above Screen

Leave a Comment