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

KAT-50: Improve design of RaisedButton to main.dart

parent d72309eb
No related branches found
No related tags found
No related merge requests found
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:rescueapp/AfterOpeningAirways.dart';
import 'package:rescueapp/SpontaneousBreathingPresent.dart';
import 'MyHomePage2.dart';
void main() { void main() {
runApp(MyApp()); runApp(MyApp());
...@@ -27,7 +29,7 @@ class MyHomePage extends StatelessWidget { ...@@ -27,7 +29,7 @@ class MyHomePage extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Scaffold( return Scaffold(
appBar: AppBar( appBar: AppBar(
title: Text('KatApp Startseite'), title: Text('KatApp Hompage'),
), ),
body: Center( body: Center(
...@@ -37,6 +39,8 @@ class MyHomePage extends StatelessWidget { ...@@ -37,6 +39,8 @@ class MyHomePage extends StatelessWidget {
height: 250, height: 250,
), ),
SizedBox( SizedBox(
width: 200,
height: 50,
child: Container ( child: Container (
child: RaisedButton( child: RaisedButton(
child: Text('ÜBUNG', style: TextStyle(fontSize: 22, color: Colors.white,)), child: Text('ÜBUNG', style: TextStyle(fontSize: 22, color: Colors.white,)),
...@@ -44,7 +48,7 @@ class MyHomePage extends StatelessWidget { ...@@ -44,7 +48,7 @@ class MyHomePage extends StatelessWidget {
onPressed: () { onPressed: () {
Navigator.push( Navigator.push(
context, context,
MaterialPageRoute(builder: (context) => MyHomePage2()), MaterialPageRoute(builder: (context) => SpontaneousBreathingPresent()),
); );
}, },
)) ))
...@@ -53,6 +57,8 @@ class MyHomePage extends StatelessWidget { ...@@ -53,6 +57,8 @@ class MyHomePage extends StatelessWidget {
height: 20, height: 20,
), ),
SizedBox ( SizedBox (
width: 200,
height: 50,
child: Container ( child: Container (
child: RaisedButton( child: RaisedButton(
child: Text('REAL',style: TextStyle(fontSize: 22, color: Colors.white)), child: Text('REAL',style: TextStyle(fontSize: 22, color: Colors.white)),
... ...
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment