Skip to content
Snippets Groups Projects
Commit 3dd443e1 authored by Thi Huyen Trang Nguyen's avatar Thi Huyen Trang Nguyen
Browse files

KAT-50:Changed page name MyhomePage1.dart to Ambulatory.dart and improved design of RaisedButton

parent 8058dc7e
No related branches found
No related tags found
No related merge requests found
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:rescueapp/AfterOpeningAirways.dart';
import 'package:rescueapp/SpontaneousBreathingPresent.dart';
class Ambulatory extends StatefulWidget {
Ambulatory({Key key, this.title}) : super(key: key);
final String title;
@override
_AmbulatoryState createState() => _AmbulatoryState();
}
class _AmbulatoryState extends State<Ambulatory> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('KatApp'),
),
body: Padding(
padding: EdgeInsets.symmetric(horizontal:40,vertical: 10),
child: Column(
children: <Widget>[
SizedBox(
height: 150,),
SizedBox(
height: 100,
child: Container(
alignment: Alignment.center,
decoration: BoxDecoration(
border: Border(
left: BorderSide(color: Colors.red, width: 2),
right: BorderSide(color: Colors.red, width: 2),
top: BorderSide(color: Colors.red, width: 2),
bottom: BorderSide(color: Colors.red, width: 2),
),),
child:Text('Ist der Patient gehfähig?', style: TextStyle(fontSize: 22, fontWeight: FontWeight.w700, color: Colors.blue[900], backgroundColor: Colors.white)),
)),
SizedBox(
height: 100,
),
SizedBox(
width: 200,
height: 50,
child: Container(
child:RaisedButton(child: new Text('Ja',
style: TextStyle(fontSize: 20,fontWeight: FontWeight.w600,
color: Colors.blue[900])),
color: Colors.blue,
onPressed: () {
}))),
SizedBox(
height:10,
),
SizedBox(
width: 200,
height: 50,
child: Container(
child:RaisedButton(child: new Text('Nein',
style: TextStyle(fontSize: 20,fontWeight: FontWeight.w600,
color: Colors.blue[900])), color: Colors.blue,
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (context) => SpontaneousBreathingPresent()),
);
}))),
SizedBox(
height:100,
),
SizedBox(
width: 200,
height: 50,
child: Container(
child:RaisedButton(child: new Text('Zurück',
style: TextStyle(fontSize: 20,fontWeight: FontWeight.w600,
color: Colors.white)), color: Colors.blue[900],
onPressed: () {
Navigator.pop(context);
}))),
],
),
),
);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment