-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathhome.dart
71 lines (63 loc) · 2.09 KB
/
home.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import 'package:flutter/material.dart';
class MyHome extends StatefulWidget {
@override
_MyHomeState createState() => _MyHomeState();
}
class _MyHomeState extends State<MyHome> {
@override
Widget build(BuildContext context) {
return MaterialApp(
//appBar: AppBar(
// title: ('Home Chat'),
home: Scaffold(
backgroundColor: Colors.red,
appBar: AppBar(
title: Text('Welcome to Redhat'),
backgroundColor: Colors.pink,
),
body: Center(
child: Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Image.asset("assets/Redhat logo.png",height: 200, width:180),
Image.asset("assets/dock.jpg",height: 153, width:130),
// Image.asset("assets/firebase-logo.png",height: 60, width:200),
Material(
color: Colors.yellow,
borderRadius: BorderRadius.circular(10),
elevation: 10,
child: MaterialButton(
minWidth: 200,
height: 40,
child: Text('Registration'),
onPressed: () {
Navigator.pushNamed(context, "reg");
},
),
),
SizedBox(
height: 40,
),
Material(
color: Colors.lightBlueAccent,
borderRadius: BorderRadius.circular(10),
elevation: 10,
child: MaterialButton(
minWidth: 200,
height: 40,
child: Text('Login'),
onPressed: () {
Navigator.pushNamed(context, "login");
// backgroundcolor : Colors.accents;
},
),
),
],
),
),
),
));
}
}
//hello this is vilsi