Skip to content

Commit a6138a4

Browse files
committed
Add new background and fix issue
1 parent 6532162 commit a6138a4

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

assets/images/background1.jpg

667 KB
Loading

assets/images/background3.jpg

290 KB
Loading

lib/main.dart

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ class _HomePageState extends State<HomePage> {
2323
Container(
2424
decoration: BoxDecoration(
2525
image: DecorationImage(
26-
image: AssetImage('assets/images/background.jpg'),
27-
fit: BoxFit.cover
26+
image: AssetImage('assets/images/background3.jpg'),
27+
fit: BoxFit.cover,
28+
alignment: Alignment.bottomCenter
2829
)
2930
),
3031
child: Container(
@@ -43,7 +44,7 @@ class _HomePageState extends State<HomePage> {
4344
mainAxisAlignment: MainAxisAlignment.end,
4445
children: <Widget>[
4546
Container(
46-
height: 250,
47+
height: 230,
4748
child: ListView(
4849
scrollDirection: Axis.horizontal,
4950
children: <Widget>[
@@ -72,14 +73,16 @@ class _HomePageState extends State<HomePage> {
7273
top: top,
7374
left: left,
7475
child: AvatarGlow(
75-
endRadius: 50,
76+
endRadius: 40,
77+
curve: Curves.linear,
7678
animate: true,
77-
glowColor: Colors.yellow,
79+
repeatPauseDuration: Duration(milliseconds: 500),
80+
glowColor: Colors.green.shade300,
7881
child: Container(
79-
width: 20,
82+
width: 16,
8083
decoration: BoxDecoration(
8184
shape: BoxShape.circle,
82-
color: Colors.yellow
85+
color: Colors.green.shade700
8386
),
8487
)
8588
)
@@ -110,19 +113,20 @@ class _HomePageState extends State<HomePage> {
110113

111114
Widget makeItem({image}) {
112115
return AspectRatio(
113-
aspectRatio: 1.7 / 2,
116+
aspectRatio: 1.9 / 2,
114117
child: Container(
115118
margin: EdgeInsets.only(right: 20),
116-
padding: EdgeInsets.all(20),
119+
padding: EdgeInsets.all(10),
117120
decoration: BoxDecoration(
118121
borderRadius: BorderRadius.circular(20),
119-
color: Colors.white
122+
color: Colors.grey.shade900
120123
),
121124
child: Column(
122125
crossAxisAlignment: CrossAxisAlignment.start,
123126
children: <Widget>[
124127
Row(
125128
mainAxisAlignment: MainAxisAlignment.spaceBetween,
129+
crossAxisAlignment: CrossAxisAlignment.start,
126130
children: <Widget>[
127131
Container(
128132
width: 60,
@@ -139,14 +143,14 @@ class _HomePageState extends State<HomePage> {
139143
padding: EdgeInsets.symmetric(horizontal: 15.0, vertical: 8.0),
140144
decoration: BoxDecoration(
141145
borderRadius: BorderRadius.circular(50),
142-
color: Colors.grey[200]
146+
color: Colors.black26
143147
),
144148
child: Text('2.1 mi', style: TextStyle(color: Colors.grey[500]),)
145149
)
146150
],
147151
),
148152
SizedBox(height: 30,),
149-
Text('Golde Gate Bridge', style: TextStyle(color: Colors.grey[800], fontSize: 25, fontWeight: FontWeight.bold),),
153+
Text('Golden Gate Bridge', style: TextStyle(color: Colors.white, fontSize: 24, fontWeight: FontWeight.bold),),
150154
SizedBox(height: 10,),
151155
Align(
152156
alignment: Alignment.bottomRight,

0 commit comments

Comments
 (0)