-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.dart
81 lines (78 loc) · 2.33 KB
/
main.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
import 'package:flutter/material.dart';
import 'package:foodie_app/foodie_button.dart';
void main() {
runApp(
MyApp(),
);
}
class MyApp extends StatelessWidget {
const MyApp({
Key key,
}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
backgroundColor: Color(0xFFFF4B3A),
body: SafeArea(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding:
const EdgeInsets.symmetric(horizontal: 32, vertical: 16),
child: CircleAvatar(
backgroundColor: Colors.white,
radius: 35,
child: Image.asset('assets/images/cap.png'),
),
),
Padding(
padding: const EdgeInsets.only(left: 32, top: 32),
child: Text(
'Food for Everyone',
style: TextStyle(
fontSize: 65,
color: Colors.white,
height: 0.8,
fontWeight: FontWeight.bold,
),
),
),
Expanded(
child: Stack(
children: [
Align(
alignment: Alignment.bottomCenter,
child: Image.asset('assets/images/toons.png')),
Container(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.center,
end: Alignment.bottomCenter,
colors: [
Color(0x11FF4B3A),
Color(0xFFFF4B3A),
],
),
),
// child: Image.asset('assets/images/toons.png'),
)
],
),
),
Padding(
padding: const EdgeInsets.symmetric(
horizontal: 50,
),
child: FoodieButton(
title: 'Get Started',
),
),
],
),
),
),
);
}
}