Skip to content

Commit f6e0b14

Browse files
committed
Created 14 input types
Merged textfield based and datetimepicker based input into one
1 parent 63fd8c2 commit f6e0b14

25 files changed

+2121
-1662
lines changed

.idea/workspace.xml

Lines changed: 293 additions & 262 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example/lib/data.dart

Lines changed: 291 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,291 @@
1+
class Contact {
2+
final String name;
3+
final String email;
4+
final String imageUrl;
5+
6+
const Contact(this.name, this.email, this.imageUrl);
7+
8+
@override
9+
bool operator ==(Object other) =>
10+
identical(this, other) ||
11+
other is Contact &&
12+
runtimeType == other.runtimeType &&
13+
name == other.name;
14+
15+
@override
16+
int get hashCode => name.hashCode;
17+
18+
@override
19+
String toString() {
20+
return name;
21+
}
22+
}
23+
24+
const allCountries = [
25+
"Afghanistan",
26+
"Albania",
27+
"Algeria",
28+
"American Samoa",
29+
"Andorra",
30+
"Angola",
31+
"Anguilla",
32+
"Antarctica",
33+
"Antigua and Barbuda",
34+
"Argentina",
35+
"Armenia",
36+
"Aruba",
37+
"Australia",
38+
"Austria",
39+
"Azerbaijan",
40+
"Bahamas",
41+
"Bahrain",
42+
"Bangladesh",
43+
"Barbados",
44+
"Belarus",
45+
"Belgium",
46+
"Belize",
47+
"Benin",
48+
"Bermuda",
49+
"Bhutan",
50+
"Bolivia",
51+
"Bosnia and Herzegowina",
52+
"Botswana",
53+
"Bouvet Island",
54+
"Brazil",
55+
"British Indian Ocean Territory",
56+
"Brunei Darussalam",
57+
"Bulgaria",
58+
"Burkina Faso",
59+
"Burundi",
60+
"Cambodia",
61+
"Cameroon",
62+
"Canada",
63+
"Cape Verde",
64+
"Cayman Islands",
65+
"Central African Republic",
66+
"Chad",
67+
"Chile",
68+
"China",
69+
"Christmas Island",
70+
"Cocos (Keeling) Islands",
71+
"Colombia",
72+
"Comoros",
73+
"Congo",
74+
"Congo, the Democratic Republic of the",
75+
"Cook Islands",
76+
"Costa Rica",
77+
"Cote d'Ivoire",
78+
"Croatia (Hrvatska)",
79+
"Cuba",
80+
"Cyprus",
81+
"Czech Republic",
82+
"Denmark",
83+
"Djibouti",
84+
"Dominica",
85+
"Dominican Republic",
86+
"East Timor",
87+
"Ecuador",
88+
"Egypt",
89+
"El Salvador",
90+
"Equatorial Guinea",
91+
"Eritrea",
92+
"Estonia",
93+
"Ethiopia",
94+
"Falkland Islands (Malvinas)",
95+
"Faroe Islands",
96+
"Fiji",
97+
"Finland",
98+
"France",
99+
"France Metropolitan",
100+
"French Guiana",
101+
"French Polynesia",
102+
"French Southern Territories",
103+
"Gabon",
104+
"Gambia",
105+
"Georgia",
106+
"Germany",
107+
"Ghana",
108+
"Gibraltar",
109+
"Greece",
110+
"Greenland",
111+
"Grenada",
112+
"Guadeloupe",
113+
"Guam",
114+
"Guatemala",
115+
"Guinea",
116+
"Guinea-Bissau",
117+
"Guyana",
118+
"Haiti",
119+
"Heard and Mc Donald Islands",
120+
"Holy See (Vatican City State)",
121+
"Honduras",
122+
"Hong Kong",
123+
"Hungary",
124+
"Iceland",
125+
"India",
126+
"Indonesia",
127+
"Iran (Islamic Republic of)",
128+
"Iraq",
129+
"Ireland",
130+
"Israel",
131+
"Italy",
132+
"Jamaica",
133+
"Japan",
134+
"Jordan",
135+
"Kazakhstan",
136+
"Kenya",
137+
"Kiribati",
138+
"Korea, Democratic People's Republic of",
139+
"Korea, Republic of",
140+
"Kuwait",
141+
"Kyrgyzstan",
142+
"Lao, People's Democratic Republic",
143+
"Latvia",
144+
"Lebanon",
145+
"Lesotho",
146+
"Liberia",
147+
"Libyan Arab Jamahiriya",
148+
"Liechtenstein",
149+
"Lithuania",
150+
"Luxembourg",
151+
"Macau",
152+
"Macedonia, The Former Yugoslav Republic of",
153+
"Madagascar",
154+
"Malawi",
155+
"Malaysia",
156+
"Maldives",
157+
"Mali",
158+
"Malta",
159+
"Marshall Islands",
160+
"Martinique",
161+
"Mauritania",
162+
"Mauritius",
163+
"Mayotte",
164+
"Mexico",
165+
"Micronesia, Federated States of",
166+
"Moldova, Republic of",
167+
"Monaco",
168+
"Mongolia",
169+
"Montserrat",
170+
"Morocco",
171+
"Mozambique",
172+
"Myanmar",
173+
"Namibia",
174+
"Nauru",
175+
"Nepal",
176+
"Netherlands",
177+
"Netherlands Antilles",
178+
"New Caledonia",
179+
"New Zealand",
180+
"Nicaragua",
181+
"Niger",
182+
"Nigeria",
183+
"Niue",
184+
"Norfolk Island",
185+
"Northern Mariana Islands",
186+
"Norway",
187+
"Oman",
188+
"Pakistan",
189+
"Palau",
190+
"Panama",
191+
"Papua New Guinea",
192+
"Paraguay",
193+
"Peru",
194+
"Philippines",
195+
"Pitcairn",
196+
"Poland",
197+
"Portugal",
198+
"Puerto Rico",
199+
"Qatar",
200+
"Reunion",
201+
"Romania",
202+
"Russian Federation",
203+
"Rwanda",
204+
"Saint Kitts and Nevis",
205+
"Saint Lucia",
206+
"Saint Vincent and the Grenadines",
207+
"Samoa",
208+
"San Marino",
209+
"Sao Tome and Principe",
210+
"Saudi Arabia",
211+
"Senegal",
212+
"Seychelles",
213+
"Sierra Leone",
214+
"Singapore",
215+
"Slovakia (Slovak Republic)",
216+
"Slovenia",
217+
"Solomon Islands",
218+
"Somalia",
219+
"South Africa",
220+
"South Georgia and the South Sandwich Islands",
221+
"Spain",
222+
"Sri Lanka",
223+
"St. Helena",
224+
"St. Pierre and Miquelon",
225+
"Sudan",
226+
"Suriname",
227+
"Svalbard and Jan Mayen Islands",
228+
"Swaziland",
229+
"Sweden",
230+
"Switzerland",
231+
"Syrian Arab Republic",
232+
"Taiwan, Province of China",
233+
"Tajikistan",
234+
"Tanzania, United Republic of",
235+
"Thailand",
236+
"Togo",
237+
"Tokelau",
238+
"Tonga",
239+
"Trinidad and Tobago",
240+
"Tunisia",
241+
"Turkey",
242+
"Turkmenistan",
243+
"Turks and Caicos Islands",
244+
"Tuvalu",
245+
"Uganda",
246+
"Ukraine",
247+
"United Arab Emirates",
248+
"United Kingdom",
249+
"United States",
250+
"United States Minor Outlying Islands",
251+
"Uruguay",
252+
"Uzbekistan",
253+
"Vanuatu",
254+
"Venezuela",
255+
"Vietnam",
256+
"Virgin Islands (British)",
257+
"Virgin Islands (U.S.)",
258+
"Wallis and Futuna Islands",
259+
"Western Sahara",
260+
"Yemen",
261+
"Yugoslavia",
262+
"Zambia",
263+
"Zimbabwe"
264+
];
265+
266+
const mockResults = <Contact>[
267+
Contact('Andrew', '[email protected]',
268+
'https://d2gg9evh47fn9z.cloudfront.net/800px_COLOURBOX4057996.jpg'),
269+
Contact('Paul', '[email protected]',
270+
'https://mbtskoudsalg.com/images/person-stock-image-png.png'),
271+
Contact('Fred', '[email protected]',
272+
'https://media.istockphoto.com/photos/feeling-great-about-my-corporate-choices-picture-id507296326'),
273+
Contact('Brian', '[email protected]',
274+
'https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png'),
275+
Contact('John', '[email protected]',
276+
'https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png'),
277+
Contact('Thomas', '[email protected]',
278+
'https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png'),
279+
Contact('Nelly', '[email protected]',
280+
'https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png'),
281+
Contact('Marie', '[email protected]',
282+
'https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png'),
283+
Contact('Charlie', '[email protected]',
284+
'https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png'),
285+
Contact('Diana', '[email protected]',
286+
'https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png'),
287+
Contact('Ernie', '[email protected]',
288+
'https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png'),
289+
Contact('Gina', '[email protected]',
290+
'https://upload.wikimedia.org/wikipedia/commons/7/7c/Profile_avatar_placeholder_large.png'),
291+
];

0 commit comments

Comments
 (0)