-
Notifications
You must be signed in to change notification settings - Fork 0
/
Seite2.dart
47 lines (34 loc) · 1.17 KB
/
Seite2.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
import 'package:flutter/material.dart';
import 'package:informationsapp_project/HomeScreen.dart';
class Seite2 extends StatelessWidget {
const Seite2({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Scaffold(
body:
Center(
child: Column(
children: <Widget>[
Text("Easy Text", textAlign: TextAlign.center),
RaisedButton(
color: Colors.red,
child: Text("Zurück zu Seite 1 unnnnnnd"),
padding: EdgeInsets.all(10.0),
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => Seite1()));
},),
],
)));
}
}
class ButtonBlau extends StatelessWidget {
const ButtonBlau({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return RaisedButton(
color: Colors.green,
onPressed: () {
Navigator.push(context, MaterialPageRoute(builder: (context) => Seite1()));
},);
}
}