Skip to content

Latest commit

 

History

History
24 lines (22 loc) · 563 Bytes

1.md

File metadata and controls

24 lines (22 loc) · 563 Bytes
  1. Create the initial Flutter app
  2. Delete all of the code from lib/main.dart. Replace with the following code.
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: const Text('Hello World'),
        ),
      ),
    );
  }
}