-
Notifications
You must be signed in to change notification settings - Fork 9
/
home_view_mobile.dart
107 lines (103 loc) · 3.44 KB
/
home_view_mobile.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
import 'package:flutter/material.dart';
import 'package:fst_app_flutter/widgets/app_drawer/app_drawer.dart';
import 'package:fst_app_flutter/widgets/card_container/card_container.dart';
class HomeMobilePortrait extends StatelessWidget {
@override
Widget build(BuildContext context) {
MediaQueryData queryData = MediaQuery.of(context);
return Scaffold(
appBar: AppBar(
title: Text("FST Go"),
centerTitle: false,
),
drawer: AppDrawer(),
body: Stack(fit: StackFit.passthrough, children: <Widget>[
Container(
margin: const EdgeInsets.only(
left: 30.0,
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: <Widget>[
SizedBox(
height: queryData.size.height * 0.02,
),
Text(
"Welcome to the\nFaculty of Greatness",
style: TextStyle(
//color: Color(0xff322F51),
fontWeight: FontWeight.bold,
fontSize: queryData.size.width * 0.055966),
),
SizedBox(
height: queryData.size.height * 0.02,
),
CardContainer(),
],
),
),
Align(
alignment: Alignment.bottomCenter,
child: Container(
height: queryData.size.height * 0.1442,
width: queryData.size.width,
child: FittedBox(
fit: BoxFit.fill,
child: Image(
width: 50,
image: AssetImage("assets/home_art.png"),
))),
)
]),
);
}
}
class HomeMobileLandscape extends StatelessWidget {
@override
Widget build(BuildContext context) {
MediaQueryData queryData = MediaQuery.of(context);
return Scaffold(
body: Row(
children: <Widget>[
AppDrawer(),
Expanded(
child: Stack(children: <Widget>[
Align(
alignment: Alignment.bottomCenter,
child: Opacity(
opacity: 0.43,
child: Container(
height: queryData.size.height * 0.77,
width: queryData.size.width,
child: FittedBox(
fit: BoxFit.fill,
child: Image(
width: 50,
image: AssetImage("assets/home_art.png"),
))),
),
),
Container(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[
Text(
"Welcome to the Faculty of Greatness",
style: TextStyle(
//color: Color(0xff322F51),
fontWeight: FontWeight.bold,
fontSize: queryData.size.shortestSide * 0.055966),
),
Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: <Widget>[CardContainer()])
])),
]),
),
],
),
);
}
}