import 'package:flutter/material.
dart';
void main() {
runApp(const MyApp());
}
// With Flutter, you create user interfaces by combining "widgets"
// You'll learn all about them (and much more) throughout this course!
class MyApp extends StatelessWidget {
const MyApp({[Link]});
// Every custom widget must have a build() method
// It tells Flutter, which widgets make up your custom widget
// Again: You'll learn all about that throughout the course!
@override
Widget build(BuildContext context) {
// Below, a bunch of built-in widgets are used (provided by Flutter)
// They will be explained in the next sections
// In this course, you will, of course, not just use them a lot but
// also learn about many other widgets!
return MaterialApp(
title: 'Flutter First App',
theme: ThemeData(useMaterial3: true),
home: Scaffold(
appBar: AppBar(
title: const Text('Welcome to Flutter'),
),
body: Container(
width: [Link],
padding: const [Link](12),
child: Column(
mainAxisAlignment: [Link],
crossAxisAlignment: [Link],
children: const [
Text(
'Flutter - The Complete Guide',
textAlign: [Link],
style: TextStyle(
fontSize: 24,
fontWeight: [Link],
),
),