-
Notifications
You must be signed in to change notification settings - Fork 0
/
home.dart
77 lines (46 loc) · 2.18 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
72
73
74
75
76
77
import 'package:flutter/material.dart';
import 'package:project1/loginPage.dart';
Future navigateToNextPage(context) async {
Navigator.push(context, MaterialPageRoute(builder: (context) => Login()));
//Navigator.push(context, MaterialPageRoute(builder: (context) => LoginPageState()));
}
class HomePage extends StatelessWidget {
@override
Widget build(BuildContext context) {
Size size = MediaQuery.of(context).size ;
return Scaffold(
//backgroundColor: Colors.indigo,
body :
Stack (
children : <Widget> [
Center(
child: new Image.asset(
'lib/bg.png',
width: size.width,
height: size.height,
fit: BoxFit.fill,
),
),
Center(
child : new Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children : <Widget>[
new Text(" Annapoorna MESS ",style: new TextStyle(color: Colors.blue, fontSize: 30.0, fontWeight: FontWeight.w500, fontFamily: "Roboto")), // , fontSize: 50.0,
/*fontWeight: FontWeight.w10 */
RaisedButton(
textColor: Colors.white,
color: Colors.blueAccent,
child: new Text("LOGIN",textAlign: TextAlign.end, style: new TextStyle(color: Colors.yellowAccent, fontSize: 20.0, fontWeight: FontWeight.w500 )),
onPressed: () {
navigateToNextPage(context) ; },
),
]
),
// new Text("LOGIN",style: new TextStyle(color: Colors.yellowAccent, fontSize: 20.0, fontWeight: FontWeight.w500))
)
]));
/* Future navigateToLoginPage(context) async {
Navigator.push(context, MaterialPageRoute(builder: (context) => Login()));
}*/
}
}