Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

dart telephone input

a dart widget for entering international telephone numbers with dropdown searching input countries

getting started telephone

add the following line in your pubspec file

tel_input:

get the package by running the command

flutter packages get

include the widget in your dart file

import 'package:tel_input/tel_input.dart';

example usage:

telinput(
  dialcode: '+852',
  includedialcode: true,
  onchange: (string phonenumber) => print('phonenumber: $phonenumber'),
)

features

provision of an example format given the selected dial code

tel-input

list of selection of countries with corresponding dial codes

telephone-dial-code-list

filtering items

tel-input-searching

parameters

parameter type description example required? default
dialcode string dial code. see the list below. ‘+93’ n ‘+852’
includedialcode bool if it is set to true, dial code and phone number will be returned in onchange method true n false
onchange function function to get the value back (string phonenumber) => print(‘phonenumber: $phonenumber’) n n/a

supported countries

country iso dial code
afghanistan (‫افغانستان‬‎) af +93
albania (shqipëri) al +355
algeria (‫الجزائر‬‎) dz +213
american samoa as +1684
andorra ad +376
angola ao +244
anguilla ai +1264
antigua and barbuda ag +1268
argentina ar +54
armenia (հայաստան) am +374
aruba aw +297
australia au +61
austria (österreich) at +43
azerbaijan (azərbaycan) az +994
bahamas bs +1242
bahrain (‫البحرين‬‎) bh +973
bangladesh (বাংলাদেশ) bd +880
barbados bb +1246
belarus (беларусь) by +375
belgium (belgië) be +32
belize bz +501
benin (bénin) bj +229
bermuda bm +1441
bhutan (འབྲུག) bt +975
bolivia bo +591
bosnia and herzegovina (босна и херцеговина) ba +387
botswana bw +267
brazil (brasil) br +55
british indian ocean territory io +246
british virgin islands vg +1284
brunei bn +673
bulgaria (българия) bg +359
burkina faso bf +226
burundi (uburundi) bi +257
cambodia (កម្ពុជា) kh +855
cameroon (cameroun) cm +237
canada ca +1
cape verde (kabu verdi) cv +238
caribbean netherlands bq +599
cayman islands ky +1345
central african republic (république centrafricaine) cf +236
chad (tchad) td +235
chile cl +56
china (中国) cn +86
christmas island cx +61
cocos (keeling) islands cc +61
colombia co +57
comoros (‫جزر القمر‬‎) km +269
congo (drc) (jamhuri ya kidemokrasia ya kongo) cd +243
congo (republic) (congo-brazzaville) cg +242
cook islands ck +682
costa rica cr +506
côte d’ivoire ci +225
croatia (hrvatska) hr +385
cuba cu +53
curaçao cw +599
cyprus (κύπρος) cy +357
czech republic (česká republika) cz +420
denmark (danmark) dk +45
djibouti dj +253
dominica dm +1767
dominican republic (república dominicana) do +1
ecuador ec +593
egypt (‫مصر‬‎) eg +20
el salvador sv +503
equatorial guinea (guinea ecuatorial) gq +240
eritrea er +291
estonia (eesti) ee +372
ethiopia et +251
falkland islands (islas malvinas) fk +500
faroe islands (føroyar) fo +298
fiji fj +679
finland (suomi) fi +358
france fr +33
french guiana (guyane française) gf +594
french polynesia (polynésie française) pf +689
gabon ga +241
gambia gm +220
georgia (საქართველო) ge +995
germany (deutschland) de +49
ghana (gaana) gh +233
gibraltar gi +350
greece (ελλάδα) gr +30
greenland (kalaallit nunaat) gl +299
grenada gd +1473
guadeloupe gp +590
guam gu +1671
guatemala gt +502
guernsey gg +44
guinea (guinée) gn +224
guinea-bissau (guiné bissau) gw +245
guyana gy +592
haiti ht +509
honduras hn +504
hong kong (香港) hk +852
hungary (magyarország) hu +36
iceland (ísland) is +354
india (भारत) in +91
indonesia id +62
iran (‫ایران‬‎) ir +98
iraq (‫العراق‬‎) iq +964
ireland ie +353
isle of man im +44
israel (‫ישראל‬‎) il +972
italy (italia) it +39
jamaica jm +1
japan (日本) jp +81
jersey je +44
jordan (‫الأردن‬‎) jo +962
kazakhstan (казахстан) kz +7
kenya ke +254
kiribati ki +686
kosovo xk +383
kuwait (‫الكويت‬‎) kw +965
kyrgyzstan (кыргызстан) kg +996
laos (ລາວ) la +856
latvia (latvija) lv +371
lebanon (‫لبنان‬‎) lb +961
lesotho ls +266
liberia lr +231
libya (‫ليبيا‬‎) ly +218
liechtenstein li +423
lithuania (lietuva) lt +370
luxembourg lu +352
macau (澳門) mo +853
macedonia (fyrom) (македонија) mk +389
madagascar (madagasikara) mg +261
malawi mw +265
malaysia my +60
maldives mv +960
mali ml +223
malta mt +356
marshall islands mh +692
martinique mq +596
mauritania (‫موريتانيا‬‎) mr +222
mauritius (moris) mu +230
mayotte yt +262
mexico (méxico) mx +52
micronesia fm +691
moldova (republica moldova) md +373
monaco mc +377
mongolia (монгол) mn +976
montenegro (crna gora) me +382
montserrat ms +1664
morocco (‫المغرب‬‎) ma +212
mozambique (moçambique) mz +258
myanmar (burma) (မြန်မာ) mm +95
namibia (namibië) na +264
nauru nr +674
nepal (नेपाल) np +977
netherlands (nederland) nl +31
new caledonia (nouvelle-calédonie) nc +687
new zealand nz +64
nicaragua ni +505
niger (nijar) ne +227
nigeria ng +234
niue nu +683
norfolk island nf +672
north korea (조선 민주주의 인민 공화국) kp +850
northern mariana islands mp +1670
norway (norge) no +47
oman (‫عُمان‬‎) om +968
pakistan (‫پاکستان‬‎) pk +92
palau pw +680
palestine (‫فلسطين‬‎) ps +970
panama (panamá) pa +507
papua new guinea pg +675
paraguay py +595
peru (perú) pe +51
philippines ph +63
poland (polska) pl +48
portugal pt +351
puerto rico pr +1
qatar (‫قطر‬‎) qa +974
réunion (la réunion) re +262
romania (românia) ro +40
russia (россия) ru +7
rwanda rw +250
saint barthélemy bl +590
saint helena sh +290
saint kitts and nevis kn +1869
saint lucia lc +1758
saint martin (saint-martin (partie française)) mf +590
saint pierre and miquelon (saint-pierre-et-miquelon) pm +508
saint vincent and the grenadines vc +1784
samoa ws +685
san marino sm +378
são tomé and príncipe (são tomé e príncipe) st +239
saudi arabia (‫المملكة العربية السعودية‬‎) sa +966
senegal (sénégal) sn +221
serbia (србија) rs +381
seychelles sc +248
sierra leone sl +232
singapore sg +65
sint maarten sx +1721
slovakia (slovensko) sk +421
slovenia (slovenija) si +386
solomon islands sb +677
somalia (soomaaliya) so +252
south africa za +27
south korea (대한민국) kr +82
south sudan (‫جنوب السودان‬‎) ss +211
spain (españa) es +34
sri lanka (ශ්‍රී ලංකාව) lk +94
sudan (‫السودان‬‎) sd +249
suriname sr +597
svalbard and jan mayen sj +47
swaziland sz +268
sweden (sverige) se +46
switzerland (schweiz) ch +41
syria (‫سوريا‬‎) sy +963
taiwan (台灣) tw +886
tajikistan tj +992
tanzania tz +255
thailand (ไทย) th +66
timor-leste tl +670
togo tg +228
tokelau tk +690
tonga to +676
trinidad and tobago tt +1868
tunisia (‫تونس‬‎) tn +216
turkey (türkiye) tr +90
turkmenistan tm +993
turks and caicos islands tc +1649
tuvalu tv +688
u.s. virgin islands vi +1340
uganda ug +256
ukraine (україна) ua +380
united arab emirates (‫الإمارات العربية المتحدة‬‎) ae +971
united kingdom gb +44
united states us +1
uruguay uy +598
uzbekistan (oʻzbekiston) uz +998
vanuatu vu +678
vatican city (città del vaticano) va +39
venezuela ve +58
vietnam (việt nam) vn +84
wallis and futuna (wallis-et-futuna) wf +681
western sahara (‫الصحراء الغربية‬‎) eh +212
yemen (‫اليمن‬‎) ye +967
zambia zm +260
zimbabwe zw +263
åland islands ax +358

Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.