diff --git a/rescueapp/lib/main.dart b/rescueapp/lib/main.dart index 032ca8dbc990f9c6dedad7d981564d7257ebf6ac..373566a654dbf6571a5b95eeafcc73014fe57144 100644 --- a/rescueapp/lib/main.dart +++ b/rescueapp/lib/main.dart @@ -1,9 +1,6 @@ import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:rescueapp/Ambulatory.dart'; -import 'package:rescueapp/SpontaneousBreathingPresent.dart'; - - void main() { runApp(MyApp()); @@ -14,15 +11,16 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( - title: 'KatApp', - theme: ThemeData( - primarySwatch: Colors.blue, - ), + title: 'KatApp', + theme: ThemeData( + primarySwatch: Colors.blue, + ), home: MyHomePage() - //home: MyHomePage(title: 'KatApp Home Page'), - ); + //home: MyHomePage(title: 'KatApp Home Page'), + ); } } + class MyHomePage extends StatelessWidget { @override Widget build(BuildContext context) { @@ -30,45 +28,49 @@ class MyHomePage extends StatelessWidget { appBar: AppBar( title: Text('KatApp Hompage'), ), - - body: Center( + body: Center( child: Column( - children: <Widget>[ - SizedBox( - height: 250, - ), - SizedBox( - width: 200, - height: 50, - child: Container ( - child: RaisedButton( - child: Text('ÜBUNG', style: TextStyle(fontSize: 22, color: Colors.white,)), + children: <Widget>[ + SizedBox( + height: 250, + ), + SizedBox( + width: 200, + height: 50, + child: Container( + child: RaisedButton( + child: Text('ÜBUNG', + style: TextStyle( + fontSize: 22, + color: Colors.white, + )), color: Colors.green, - onPressed: () { - Navigator.push( - context, - MaterialPageRoute(builder: (context) => Ambulatory()), - ); - }, - )) - ), - SizedBox ( - height: 20, - ), - SizedBox ( - width: 200, - height: 50, - child: Container ( - child: RaisedButton( - child: Text('REAL',style: TextStyle(fontSize: 22, color: Colors.white)), - color: Colors.red, onPressed: () { Navigator.push( - context, - MaterialPageRoute(builder: (context) => MyHomePage()), - );} - ) ),), - ], + context, + MaterialPageRoute(builder: (context) => Ambulatory()), + ); + }, + ))), + SizedBox( + height: 20, + ), + SizedBox( + width: 200, + height: 50, + child: Container( + child: RaisedButton( + child: Text('REAL', + style: TextStyle(fontSize: 22, color: Colors.white)), + color: Colors.red, + onPressed: () { + Navigator.push( + context, + MaterialPageRoute(builder: (context) => MyHomePage()), + ); + })), + ), + ], ), ), );