-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathScott.dart
44 lines (41 loc) · 1.09 KB
/
Scott.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
import 'package:flutter/material.dart';
import 'package:group3a3/main.dart';
class Scott extends StatefulWidget {
const Scott({Key? key}) : super(key: key);
@override
_ScottState createState() => _ScottState();
}
class _ScottState extends State<Scott> {
@override
Widget build(BuildContext context) {
return Material(
child: Column(
children: <Widget>[
Center(
child: AppBar(
title: Text("Cody's Page"),
backgroundColor: Colors.green,
),
),
Padding(
padding: const EdgeInsets.all(10.0),
child: Text(
"My favorite color is blue",
style: TextStyle(fontSize: 35),
),
),
ElevatedButton(
style: ElevatedButton.styleFrom(
primary: Colors.orange,
),
onPressed: () {
Navigator.push(
context, MaterialPageRoute(builder: (context) => MyApp()));
},
child: Text("GOTO Home"),
),
],
),
);
}
}