1
+ import 'package:flutter_photography/models/Collocation.dart' ;
2
+ import 'package:flutter_photography/models/Post.dart' ;
3
+ import 'package:flutter_photography/models/User.dart' ;
4
+
5
+ class Sample {
6
+ static User mohammad = new User (
7
+ name: "Mohammad Rahmani" ,
8
+ username: "@afgprogrammer" ,
9
+ followers: 400 ,
10
+ following: 190 ,
11
+ profilePicture: "assets/users/mohammad.jpg" ,
12
+ collocation: [
13
+ new Collocation (
14
+ name: "Photography" ,
15
+ tags: [
16
+ "HD Photos" ,
17
+ "Weather" ,
18
+ "Photography"
19
+ ],
20
+ thumbnail: "assets/photos/one.jpg" ,
21
+ posts: [
22
+ new Post (
23
+ location: "Kabul, Afghanistan" ,
24
+ dateAgo: "3 min ago" ,
25
+ photos: [
26
+ 'assets/photos/one.jpg' ,
27
+ 'assets/photos/two.jpg' ,
28
+ 'assets/photos/three.jpg' ,
29
+ ]
30
+ ),
31
+ new Post (
32
+ location: "Herat, Afghanistan" ,
33
+ dateAgo: "2 week ago" ,
34
+ photos: [
35
+ 'assets/photos/six.jpg' ,
36
+ 'assets/photos/eight.jpg' ,
37
+ 'assets/photos/two.jpg' ,
38
+ ]
39
+ )
40
+ ]
41
+ ),
42
+ new Collocation (
43
+ name: "Photography" ,
44
+ tags: [
45
+ "HD Photos" ,
46
+ "Weather" ,
47
+ "Photography"
48
+ ],
49
+ thumbnail: "assets/photos/five.jpg" ,
50
+ posts: [
51
+ new Post (
52
+ location: "Kabul, Afghanistan" ,
53
+ dateAgo: "3 min ago" ,
54
+ photos: [
55
+ 'assets/photos/one.jpg' ,
56
+ 'assets/photos/two.jpg' ,
57
+ 'assets/photos/three.jpg' ,
58
+ ]
59
+ ),
60
+ new Post (
61
+ location: "Herat, Afghanistan" ,
62
+ dateAgo: "2 week ago" ,
63
+ photos: [
64
+ 'assets/photos/six.jpg' ,
65
+ 'assets/photos/eight.jpg' ,
66
+ 'assets/photos/two.jpg' ,
67
+ ]
68
+ )
69
+ ]
70
+ ),
71
+ ]
72
+ );
73
+
74
+ static User yasir = new User (
75
+ name: "Yasir Ahmad" ,
76
+ username: "@yasirnoori.yn" ,
77
+ followers: 400 ,
78
+ following: 190 ,
79
+ profilePicture: "assets/users/yasir.jpg" ,
80
+ collocation: [
81
+ new Collocation (
82
+ name: "Photography" ,
83
+ tags: [
84
+ "HD Photos" ,
85
+ "Weather" ,
86
+ "Photography"
87
+ ],
88
+ thumbnail: "assets/photos/two.jpg" ,
89
+ posts: [
90
+ new Post (
91
+ location: "Kabul, Afghanistan" ,
92
+ dateAgo: "3 min ago" ,
93
+ photos: [
94
+ 'assets/photos/five.jpg' ,
95
+ 'assets/photos/six.jpg' ,
96
+ 'assets/photos/seven.jpg' ,
97
+ ]
98
+ ),
99
+ new Post (
100
+ location: "Herat, Afghanistan" ,
101
+ dateAgo: "2 week ago" ,
102
+ photos: [
103
+ 'assets/photos/six.jpg' ,
104
+ 'assets/photos/eight.jpg' ,
105
+ 'assets/photos/two.jpg' ,
106
+ ]
107
+ )
108
+ ]
109
+ ),
110
+ ]
111
+ );
112
+
113
+ static Post postOne = new Post (
114
+ user: mohammad,
115
+ location: "Kabul, Afghanistan" ,
116
+ dateAgo: "3 min ago" ,
117
+ photos: [
118
+ 'assets/photos/one.jpg' ,
119
+ 'assets/photos/two.jpg' ,
120
+ 'assets/photos/three.jpg'
121
+ ],
122
+ relatedPhotos: [
123
+ 'assets/photos/four.jpg' ,
124
+ 'assets/photos/five.jpg' ,
125
+ 'assets/photos/six.jpg' ,
126
+ 'assets/photos/seven.jpg' ,
127
+ 'assets/photos/eight.jpg'
128
+ ]
129
+ );
130
+
131
+ static Post postTwo = new Post (
132
+ user: yasir,
133
+ location: "Kabul, Afghanistan" ,
134
+ dateAgo: "3 min ago" ,
135
+ photos: [
136
+ 'assets/photos/four.jpg' ,
137
+ 'assets/photos/five.jpg' ,
138
+ 'assets/photos/six.jpg' ,
139
+ ],
140
+ relatedPhotos: [
141
+ 'assets/photos/one.jpg' ,
142
+ 'assets/photos/two.jpg' ,
143
+ 'assets/photos/three.jpg' ,
144
+ 'assets/photos/four.jpg' ,
145
+ 'assets/photos/five.jpg'
146
+ ]
147
+ );
148
+ }
0 commit comments