-
Notifications
You must be signed in to change notification settings - Fork 74
/
pixel_perfect.dart
129 lines (126 loc) · 4.67 KB
/
pixel_perfect.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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
import 'package:flutter/material.dart';
import 'package:pixel_perfect/pixel_perfect.dart';
class MyPixelPerfect extends StatelessWidget {
const MyPixelPerfect({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
const String iconPath = 'assets/images/pixel_perfect/icons/';
const String imagePath = 'assets/images/pixel_perfect/images/';
return PixelPerfect(
assetPath: '${imagePath}profile_light.jpg',
child: Scaffold(
body: SafeArea(
child: Padding(
padding: const EdgeInsets.symmetric(vertical: 32, horizontal: 15),
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
children: [
Row(
children: [
const Text(
'pieroborgo',
style: TextStyle(
fontSize: 24,
fontFamily: 'SFProText',
fontWeight: FontWeight.w700,
),
),
const Spacer(),
IconButton(
onPressed: () {},
icon: Image.asset('${iconPath}new-video.png'),
constraints: BoxConstraints.tight(const Size(21.5, 21.5)),
padding: EdgeInsets.zero,
),
const SizedBox(width: 30.5),
IconButton(
onPressed: () {},
icon: Image.asset('${iconPath}menu.png'),
constraints: BoxConstraints.tight(const Size(21.5, 21.5)),
padding: EdgeInsets.zero,
),
],
),
const SizedBox(height: 12),
Padding(
padding: const EdgeInsets.only(right: 8.5),
child: Row(
children: [
CircleAvatar(
radius: 43,
child: Image.asset('${imagePath}avatar.png'),
),
const Spacer(),
const Column(
children: [
Text(
'210',
style: TextStyle(
fontSize: 17,
fontFamily: 'SFProText',
fontWeight: FontWeight.bold,
),
),
Text(
'post',
style: TextStyle(
fontSize: 15,
fontFamily: 'SFProText',
fontWeight: FontWeight.w700,
),
),
],
),
const SizedBox(width: 38),
const Column(
children: [
Text(
'600',
style: TextStyle(
fontSize: 17,
fontFamily: 'SFProText',
fontWeight: FontWeight.bold,
),
),
Text(
'follower',
style: TextStyle(
fontSize: 15,
fontFamily: 'SFProText',
fontWeight: FontWeight.w700,
),
),
],
),
const SizedBox(width: 20),
const Column(
children: [
Text(
'500',
style: TextStyle(
fontSize: 17,
fontFamily: 'SFProText',
fontWeight: FontWeight.bold,
),
),
Text(
'following',
style: TextStyle(
fontSize: 15,
fontFamily: 'SFProText',
fontWeight: FontWeight.w700,
),
),
],
),
],
),
)
],
),
),
),
),
);
}
}