-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathWeidner.dart
38 lines (35 loc) · 1.04 KB
/
Weidner.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
import 'package:flutter/material.dart';
import 'package:group3a3/main.dart';
class bensPage extends StatefulWidget {
const bensPage({Key? key}) : super(key: key);
@override
_bensPageState createState() => _bensPageState();
}
class _bensPageState extends State<bensPage> {
@override
Widget build(BuildContext context) {
return Material(
child: Column(
children: <Widget>[
Center(
child: AppBar(
backgroundColor: Colors.cyan,
title: Text("Ben's Page"),
),
),
Text("I enjoy skateboarding.", style: TextStyle(fontSize: 35)),
ElevatedButton(
onPressed: () {
Navigator.push(
context, MaterialPageRoute(builder: (context) => MyApp()));
},
style: ElevatedButton.styleFrom(primary: Colors.orange),
child: Padding(
padding: const EdgeInsets.all(10.0),
child: Text("GOTO Main"),
)),
],
),
);
}
}