Responsive Advertisement

Flutter First Project - Hello Word

Let’s go through this code step by step.

1. Open the Android Studio.

2. Create the Flutter project. To create a project, go to File-> New->New Flutter Project.

3. In the next wizard, you need to choose the Flutter Application.

4. Write your Application Name and SDK Path.

5. go next


import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  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'),
        ),
      ),
    );
  }
}


Post a Comment

1 Comments

"Please don't put any links in the comments"