Skip to content

Commit 55daf1d

Browse files
committed
Make find-event page
1 parent 06a2819 commit 55daf1d

File tree

1 file changed

+135
-0
lines changed

1 file changed

+135
-0
lines changed

lib/FindEvent.dart

Lines changed: 135 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
import 'package:day9_party/Animation/FadeAnimation.dart';
2+
import 'package:flutter/material.dart';
3+
4+
class FindEvent extends StatelessWidget {
5+
@override
6+
Widget build(BuildContext context) {
7+
return Scaffold(
8+
backgroundColor: Color.fromRGBO(246, 248, 253, 1),
9+
appBar: AppBar(
10+
backgroundColor: Colors.transparent,
11+
elevation: 0,
12+
brightness: Brightness.light,
13+
leading: Icon(Icons.menu, color: Colors.black,),
14+
actions: <Widget>[
15+
Padding(
16+
padding: EdgeInsets.all(10.0),
17+
child: Container(
18+
width: 35,
19+
height: 35,
20+
decoration: BoxDecoration(
21+
borderRadius: BorderRadius.circular(10),
22+
image: DecorationImage(
23+
image: AssetImage('assets/images/four.jpg'),
24+
fit: BoxFit.cover
25+
)
26+
),
27+
child: Transform.translate(
28+
offset: Offset(15, -15),
29+
child: Container(
30+
margin: EdgeInsets.all(10),
31+
decoration: BoxDecoration(
32+
border: Border.all(width: 3, color: Colors.white),
33+
shape: BoxShape.circle,
34+
color: Colors.yellow[800]
35+
),
36+
),
37+
),
38+
),
39+
)
40+
],
41+
),
42+
body: SafeArea(
43+
child: SingleChildScrollView(
44+
padding: EdgeInsets.all(20),
45+
child: Column(
46+
crossAxisAlignment: CrossAxisAlignment.start,
47+
children: <Widget>[
48+
FadeAnimation(1, Container(
49+
padding: EdgeInsets.symmetric(vertical: 5),
50+
decoration: BoxDecoration(
51+
borderRadius: BorderRadius.circular(50),
52+
color: Colors.white
53+
),
54+
child: TextField(
55+
decoration: InputDecoration(
56+
border: InputBorder.none,
57+
prefixIcon: Icon(Icons.search, color: Colors.grey,),
58+
hintText: "Search Event",
59+
hintStyle: TextStyle(color: Colors.grey)
60+
),
61+
),
62+
)),
63+
SizedBox(height: 30,),
64+
FadeAnimation(1.2, makeItem(image: 'assets/images/one.jpg', date: 17)),
65+
SizedBox(height: 20,),
66+
FadeAnimation(1.3, makeItem(image: 'assets/images/two.jpg', date: 18)),
67+
SizedBox(height: 20,),
68+
FadeAnimation(1.4, makeItem(image: 'assets/images/three.jpg', date: 19)),
69+
SizedBox(height: 20,),
70+
FadeAnimation(1.5, makeItem(image: 'assets/images/four.jpg', date: 20)),
71+
SizedBox(height: 20,),
72+
],
73+
),
74+
),
75+
),
76+
);
77+
}
78+
79+
Widget makeItem({image, date}) {
80+
return Row(
81+
children: <Widget>[
82+
Container(
83+
width: 50,
84+
height: 200,
85+
margin: EdgeInsets.only(right: 20),
86+
child: Column(
87+
children: <Widget>[
88+
Text(date.toString(), style: TextStyle(color: Colors.blue, fontSize: 25, fontWeight: FontWeight.bold),),
89+
Text("SEP", style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),)
90+
],
91+
),
92+
),
93+
Expanded(
94+
child: Container(
95+
height: 200,
96+
decoration: BoxDecoration(
97+
borderRadius: BorderRadius.circular(20),
98+
image: DecorationImage(
99+
image: AssetImage(image),
100+
fit: BoxFit.cover
101+
)
102+
),
103+
child: Container(
104+
padding: EdgeInsets.all(20),
105+
decoration: BoxDecoration(
106+
borderRadius: BorderRadius.circular(20),
107+
gradient: LinearGradient(
108+
colors: [
109+
Colors.black.withOpacity(.4),
110+
Colors.black.withOpacity(.1),
111+
]
112+
)
113+
),
114+
child: Column(
115+
crossAxisAlignment: CrossAxisAlignment.start,
116+
mainAxisAlignment: MainAxisAlignment.end,
117+
children: <Widget>[
118+
Text("Bumbershoot 2019", style: TextStyle(color: Colors.white, fontSize: 30, fontWeight: FontWeight.bold),),
119+
SizedBox(height: 10,),
120+
Row(
121+
children: <Widget>[
122+
Icon(Icons.access_time, color: Colors.white,),
123+
SizedBox(width: 10,),
124+
Text("19:00 PM", style: TextStyle(color: Colors.white),)
125+
],
126+
)
127+
],
128+
),
129+
),
130+
),
131+
),
132+
],
133+
);
134+
}
135+
}

0 commit comments

Comments
 (0)