From 46058d6d69bea9a5e8d11f571ce6c7a8fc1aff47 Mon Sep 17 00:00:00 2001 From: Trang Nguyen <thi_huyen_trang.nguyen@student.reutlingen-university.de> Date: Sun, 22 Nov 2020 07:17:56 +0100 Subject: [PATCH] KAT-50: Deleted the unnecessary import and reformated in main.dart --- rescueapp/lib/main.dart | 90 +++++++++++++++++++++-------------------- 1 file changed, 46 insertions(+), 44 deletions(-) diff --git a/rescueapp/lib/main.dart b/rescueapp/lib/main.dart index 032ca8d..373566a 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()), + ); + })), + ), + ], ), ), ); -- GitLab