-
Notifications
You must be signed in to change notification settings - Fork 3
/
Main Screen
108 lines (100 loc) · 3.03 KB
/
Main Screen
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
108
import 'package:flutter/material.dart';
void main() => runApp(SwipeMyRideMain());
class SwipeMyRideMain extends StatelessWidget {
// This widget is the root of your application.
Widget carTitle = Container(
padding: const EdgeInsets.only(top: 5, left: 32),
child: Row(
children: [
Expanded(
/*1*/
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
/*2*/
Container(
padding: const EdgeInsets.only(top: 5, left: 32),
child: Text(
'Skyline 370GT \$37,000',
style: TextStyle(
fontWeight: FontWeight.bold,
),
),
),
Text(
'Auckland',
style: TextStyle(
color: Colors.grey,
),
),
],
),
),
],
),
);
@override
Widget build(BuildContext context) {
Color color1 = Colors.red;
Color color2 = Colors.black;
Widget buttonSection = Container(
child: Row(mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
_buildButtonColumn(color2, Icons.highlight_off),
_buildButtonColumn(color1, Icons.whatshot),
]));
Widget textSection = Container(
padding: const EdgeInsets.only(left: 32, bottom: 10),
child: Text(
'Skyline 370GT 2010 for sale. \nCar is in excellent condition. \nA couple of modifications added to it for extra sexyness.'
// 'Modifications include:'
// 'IPL body kit'
// 'Stillen Intakes'
// 'Front grille plastidipped'
// 'Slammed BGW APEX wheels, machined face, gloss black, 15x6.5 x4'
// 'Toyo Proxes Sport 225/45/15/94/R tyres x4'
// 'IPL side skirts'
// 'FALKEN car vinyl'
// 'Vortech V3 centrifugal supercharger'
// 'HKS Hi-power exhaust system Twin 120mm 304 stainless steel'
// 'Aluminium Tower Strut bar'
// 'Price is O.N.O'
// 'Please contact me on: 0220325565'
'\nGod loves you.',
softWrap: true,
),
);
return MaterialApp(
title: 'Swipe My Ride',
home: Scaffold(
appBar: AppBar(
title: Text('Swipe My Ride'),
),
body: Column(children: [
Image.asset(
'images/skyline.jpeg',
width: 600,
height: 240,
fit: BoxFit.cover,
),
carTitle,
Flexible(
fit: FlexFit.loose,
flex: 2,
child: textSection),
buttonSection,
]),
),
);
}
Column _buildButtonColumn(Color color, IconData icon) {
return Column(
mainAxisSize: MainAxisSize.min,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(icon, color: color, size: 60),
Container(
margin: const EdgeInsets.only(top: 8),
),
]);
}
}