Skip to content

Latest commit

 

History

History
43 lines (33 loc) · 813 Bytes

day5.md

File metadata and controls

43 lines (33 loc) · 813 Bytes

Day 5 (Flutter Starts)

Today's App

import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: "Hello",
      home: Scaffold(
        appBar: AppBar(
          title: const Text("HOME SCREEN"),
          centerTitle: true,
        ),
        backgroundColor: Colors.greenAccent,
        body: const Center(
          child: Text(
            "Welcome to Flutter",
            style: TextStyle(
              fontSize: 30,
            ),
          ),
        ),
      ),
    );
  }
}