-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFlutterStarterCode.dart
49 lines (43 loc) · 1.28 KB
/
FlutterStarterCode.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
/// this is your APP Main screen configuration
class MyApp extends StatelessWidget {
MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: MyHomePage(),
);
}
}
/// this is a template to start building a UI
/// to start adding any UI you want change what comes after the [ body: ] tag below
class MyHomePage extends StatelessWidget {
MyHomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: const Color(0xfff4f4f4),
/*******************--[focus here 🧐]--*******************/
appBar: AppBar(
leading: const Icon(Icons.android_sharp),
title: const Text('App Title'),
backgroundColor: Colors.teal,
elevation: 4,
),
body: myWidget(),
/*******************--[focus here 🧐]--*******************/
);
}
Widget myWidget() {
return Container(
padding: EdgeInsets.all(20),
child:
/*******************--[focus here 🧐]--*******************/
Text(
'Welcome to the Course',
),
/*******************--[focus here 🧐]--*******************/
);
}
}