├── assets └── images │ └── flags │ ├── ad.png │ ├── ae.png │ ├── af.png │ ├── ag.png │ ├── ai.png │ ├── al.png │ ├── am.png │ ├── an.png │ ├── ao.png │ ├── aq.png │ ├── ar.png │ ├── as.png │ ├── at.png │ ├── au.png │ ├── aw.png │ ├── ax.png │ ├── az.png │ ├── ba.png │ ├── bb.png │ ├── bd.png │ ├── be.png │ ├── bf.png │ ├── bg.png │ ├── bh.png │ ├── bi.png │ ├── bj.png │ ├── bl.png │ ├── bm.png │ ├── bn.png │ ├── bo.png │ ├── bq.png │ ├── br.png │ ├── bs.png │ ├── bt.png │ ├── bv.png │ ├── bw.png │ ├── by.png │ ├── bz.png │ ├── ca.png │ ├── cc.png │ ├── cd.png │ ├── cf.png │ ├── cg.png │ ├── ch.png │ ├── ci.png │ ├── ck.png │ ├── cl.png │ ├── cm.png │ ├── cn.png │ ├── co.png │ ├── cr.png │ ├── cu.png │ ├── cv.png │ ├── cw.png │ ├── cx.png │ ├── cy.png │ ├── cz.png │ ├── de.png │ ├── dj.png │ ├── dk.png │ ├── dm.png │ ├── do.png │ ├── dz.png │ ├── ec.png │ ├── ee.png │ ├── eg.png │ ├── eh.png │ ├── er.png │ ├── es.png │ ├── et.png │ ├── eu.png │ ├── fi.png │ ├── fj.png │ ├── fk.png │ ├── fm.png │ ├── fo.png │ ├── fr.png │ ├── ga.png │ ├── gb.png │ ├── gd.png │ ├── ge.png │ ├── gf.png │ ├── gg.png │ ├── gh.png │ ├── gi.png │ ├── gl.png │ ├── gm.png │ ├── gn.png │ ├── gp.png │ ├── gq.png │ ├── gr.png │ ├── gs.png │ ├── gt.png │ ├── gu.png │ ├── gw.png │ ├── gy.png │ ├── hk.png │ ├── hm.png │ ├── hn.png │ ├── hr.png │ ├── ht.png │ ├── hu.png │ ├── id.png │ ├── ie.png │ ├── il.png │ ├── im.png │ ├── in.png │ ├── io.png │ ├── iq.png │ ├── ir.png │ ├── is.png │ ├── it.png │ ├── je.png │ ├── jm.png │ ├── jo.png │ ├── jp.png │ ├── ke.png │ ├── kg.png │ ├── kh.png │ ├── ki.png │ ├── km.png │ ├── kn.png │ ├── kp.png │ ├── kr.png │ ├── kw.png │ ├── ky.png │ ├── kz.png │ ├── la.png │ ├── lb.png │ ├── lc.png │ ├── li.png │ ├── lk.png │ ├── lr.png │ ├── ls.png │ ├── lt.png │ ├── lu.png │ ├── lv.png │ ├── ly.png │ ├── ma.png │ ├── mc.png │ ├── md.png │ ├── me.png │ ├── mf.png │ ├── mg.png │ ├── mh.png │ ├── mk.png │ ├── ml.png │ ├── mm.png │ ├── mn.png │ ├── mo.png │ ├── mp.png │ ├── mq.png │ ├── mr.png │ ├── ms.png │ ├── mt.png │ ├── mu.png │ ├── mv.png │ ├── mw.png │ ├── mx.png │ ├── my.png │ ├── mz.png │ ├── na.png │ ├── nc.png │ ├── ne.png │ ├── nf.png │ ├── ng.png │ ├── ni.png │ ├── nl.png │ ├── no.png │ ├── np.png │ ├── nr.png │ ├── nu.png │ ├── nz.png │ ├── om.png │ ├── pa.png │ ├── pe.png │ ├── pf.png │ ├── pg.png │ ├── ph.png │ ├── pk.png │ ├── pl.png │ ├── pm.png │ ├── pn.png │ ├── pr.png │ ├── ps.png │ ├── pt.png │ ├── pw.png │ ├── py.png │ ├── qa.png │ ├── re.png │ ├── ro.png │ ├── rs.png │ ├── ru.png │ ├── rw.png │ ├── sa.png │ ├── sb.png │ ├── sc.png │ ├── sd.png │ ├── se.png │ ├── sg.png │ ├── sh.png │ ├── si.png │ ├── sj.png │ ├── sk.png │ ├── sl.png │ ├── sm.png │ ├── sn.png │ ├── so.png │ ├── sr.png │ ├── ss.png │ ├── st.png │ ├── sv.png │ ├── sx.png │ ├── sy.png │ ├── sz.png │ ├── tc.png │ ├── td.png │ ├── tf.png │ ├── tg.png │ ├── th.png │ ├── tj.png │ ├── tk.png │ ├── tl.png │ ├── tm.png │ ├── tn.png │ ├── to.png │ ├── tr.png │ ├── tt.png │ ├── tv.png │ ├── tw.png │ ├── tz.png │ ├── ua.png │ ├── ug.png │ ├── um.png │ ├── us.png │ ├── uy.png │ ├── uz.png │ ├── va.png │ ├── vc.png │ ├── ve.png │ ├── vg.png │ ├── vi.png │ ├── vn.png │ ├── vu.png │ ├── wf.png │ ├── ws.png │ ├── xk.png │ ├── ye.png │ ├── yt.png │ ├── za.png │ ├── zm.png │ ├── zw.png │ ├── gb-eng.png │ ├── gb-nir.png │ ├── gb-sct.png │ └── gb-wls.png ├── lib ├── ola_like_country_picker.dart └── src │ ├── Models │ └── country.dart │ ├── example_widget.dart │ ├── country_listview.dart │ ├── country_picker.dart │ └── Repository │ └── countries_json.dart ├── .metadata ├── CHANGELOG.md ├── example └── example.dart ├── .gitignore ├── pubspec.yaml ├── pubspec.lock ├── README.md └── LICENSE /assets/images/flags/ad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ad.png -------------------------------------------------------------------------------- /assets/images/flags/ae.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ae.png -------------------------------------------------------------------------------- /assets/images/flags/af.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/af.png -------------------------------------------------------------------------------- /assets/images/flags/ag.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ag.png -------------------------------------------------------------------------------- /assets/images/flags/ai.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ai.png -------------------------------------------------------------------------------- /assets/images/flags/al.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/al.png -------------------------------------------------------------------------------- /assets/images/flags/am.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/am.png -------------------------------------------------------------------------------- /assets/images/flags/an.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/an.png -------------------------------------------------------------------------------- /assets/images/flags/ao.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ao.png -------------------------------------------------------------------------------- /assets/images/flags/aq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/aq.png -------------------------------------------------------------------------------- /assets/images/flags/ar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ar.png -------------------------------------------------------------------------------- /assets/images/flags/as.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/as.png -------------------------------------------------------------------------------- /assets/images/flags/at.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/at.png -------------------------------------------------------------------------------- /assets/images/flags/au.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/au.png -------------------------------------------------------------------------------- /assets/images/flags/aw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/aw.png -------------------------------------------------------------------------------- /assets/images/flags/ax.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ax.png -------------------------------------------------------------------------------- /assets/images/flags/az.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/az.png -------------------------------------------------------------------------------- /assets/images/flags/ba.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ba.png -------------------------------------------------------------------------------- /assets/images/flags/bb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bb.png -------------------------------------------------------------------------------- /assets/images/flags/bd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bd.png -------------------------------------------------------------------------------- /assets/images/flags/be.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/be.png -------------------------------------------------------------------------------- /assets/images/flags/bf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bf.png -------------------------------------------------------------------------------- /assets/images/flags/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bg.png -------------------------------------------------------------------------------- /assets/images/flags/bh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bh.png -------------------------------------------------------------------------------- /assets/images/flags/bi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bi.png -------------------------------------------------------------------------------- /assets/images/flags/bj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bj.png -------------------------------------------------------------------------------- /assets/images/flags/bl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bl.png -------------------------------------------------------------------------------- /assets/images/flags/bm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bm.png -------------------------------------------------------------------------------- /assets/images/flags/bn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bn.png -------------------------------------------------------------------------------- /assets/images/flags/bo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bo.png -------------------------------------------------------------------------------- /assets/images/flags/bq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bq.png -------------------------------------------------------------------------------- /assets/images/flags/br.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/br.png -------------------------------------------------------------------------------- /assets/images/flags/bs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bs.png -------------------------------------------------------------------------------- /assets/images/flags/bt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bt.png -------------------------------------------------------------------------------- /assets/images/flags/bv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bv.png -------------------------------------------------------------------------------- /assets/images/flags/bw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bw.png -------------------------------------------------------------------------------- /assets/images/flags/by.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/by.png -------------------------------------------------------------------------------- /assets/images/flags/bz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/bz.png -------------------------------------------------------------------------------- /assets/images/flags/ca.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ca.png -------------------------------------------------------------------------------- /assets/images/flags/cc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cc.png -------------------------------------------------------------------------------- /assets/images/flags/cd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cd.png -------------------------------------------------------------------------------- /assets/images/flags/cf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cf.png -------------------------------------------------------------------------------- /assets/images/flags/cg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cg.png -------------------------------------------------------------------------------- /assets/images/flags/ch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ch.png -------------------------------------------------------------------------------- /assets/images/flags/ci.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ci.png -------------------------------------------------------------------------------- /assets/images/flags/ck.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ck.png -------------------------------------------------------------------------------- /assets/images/flags/cl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cl.png -------------------------------------------------------------------------------- /assets/images/flags/cm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cm.png -------------------------------------------------------------------------------- /assets/images/flags/cn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cn.png -------------------------------------------------------------------------------- /assets/images/flags/co.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/co.png -------------------------------------------------------------------------------- /assets/images/flags/cr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cr.png -------------------------------------------------------------------------------- /assets/images/flags/cu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cu.png -------------------------------------------------------------------------------- /assets/images/flags/cv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cv.png -------------------------------------------------------------------------------- /assets/images/flags/cw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cw.png -------------------------------------------------------------------------------- /assets/images/flags/cx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cx.png -------------------------------------------------------------------------------- /assets/images/flags/cy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cy.png -------------------------------------------------------------------------------- /assets/images/flags/cz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/cz.png -------------------------------------------------------------------------------- /assets/images/flags/de.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/de.png -------------------------------------------------------------------------------- /assets/images/flags/dj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/dj.png -------------------------------------------------------------------------------- /assets/images/flags/dk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/dk.png -------------------------------------------------------------------------------- /assets/images/flags/dm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/dm.png -------------------------------------------------------------------------------- /assets/images/flags/do.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/do.png -------------------------------------------------------------------------------- /assets/images/flags/dz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/dz.png -------------------------------------------------------------------------------- /assets/images/flags/ec.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ec.png -------------------------------------------------------------------------------- /assets/images/flags/ee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ee.png -------------------------------------------------------------------------------- /assets/images/flags/eg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/eg.png -------------------------------------------------------------------------------- /assets/images/flags/eh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/eh.png -------------------------------------------------------------------------------- /assets/images/flags/er.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/er.png -------------------------------------------------------------------------------- /assets/images/flags/es.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/es.png -------------------------------------------------------------------------------- /assets/images/flags/et.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/et.png -------------------------------------------------------------------------------- /assets/images/flags/eu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/eu.png -------------------------------------------------------------------------------- /assets/images/flags/fi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/fi.png -------------------------------------------------------------------------------- /assets/images/flags/fj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/fj.png -------------------------------------------------------------------------------- /assets/images/flags/fk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/fk.png -------------------------------------------------------------------------------- /assets/images/flags/fm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/fm.png -------------------------------------------------------------------------------- /assets/images/flags/fo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/fo.png -------------------------------------------------------------------------------- /assets/images/flags/fr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/fr.png -------------------------------------------------------------------------------- /assets/images/flags/ga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ga.png -------------------------------------------------------------------------------- /assets/images/flags/gb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gb.png -------------------------------------------------------------------------------- /assets/images/flags/gd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gd.png -------------------------------------------------------------------------------- /assets/images/flags/ge.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ge.png -------------------------------------------------------------------------------- /assets/images/flags/gf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gf.png -------------------------------------------------------------------------------- /assets/images/flags/gg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gg.png -------------------------------------------------------------------------------- /assets/images/flags/gh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gh.png -------------------------------------------------------------------------------- /assets/images/flags/gi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gi.png -------------------------------------------------------------------------------- /assets/images/flags/gl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gl.png -------------------------------------------------------------------------------- /assets/images/flags/gm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gm.png -------------------------------------------------------------------------------- /assets/images/flags/gn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gn.png -------------------------------------------------------------------------------- /assets/images/flags/gp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gp.png -------------------------------------------------------------------------------- /assets/images/flags/gq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gq.png -------------------------------------------------------------------------------- /assets/images/flags/gr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gr.png -------------------------------------------------------------------------------- /assets/images/flags/gs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gs.png -------------------------------------------------------------------------------- /assets/images/flags/gt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gt.png -------------------------------------------------------------------------------- /assets/images/flags/gu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gu.png -------------------------------------------------------------------------------- /assets/images/flags/gw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gw.png -------------------------------------------------------------------------------- /assets/images/flags/gy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gy.png -------------------------------------------------------------------------------- /assets/images/flags/hk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/hk.png -------------------------------------------------------------------------------- /assets/images/flags/hm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/hm.png -------------------------------------------------------------------------------- /assets/images/flags/hn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/hn.png -------------------------------------------------------------------------------- /assets/images/flags/hr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/hr.png -------------------------------------------------------------------------------- /assets/images/flags/ht.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ht.png -------------------------------------------------------------------------------- /assets/images/flags/hu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/hu.png -------------------------------------------------------------------------------- /assets/images/flags/id.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/id.png -------------------------------------------------------------------------------- /assets/images/flags/ie.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ie.png -------------------------------------------------------------------------------- /assets/images/flags/il.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/il.png -------------------------------------------------------------------------------- /assets/images/flags/im.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/im.png -------------------------------------------------------------------------------- /assets/images/flags/in.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/in.png -------------------------------------------------------------------------------- /assets/images/flags/io.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/io.png -------------------------------------------------------------------------------- /assets/images/flags/iq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/iq.png -------------------------------------------------------------------------------- /assets/images/flags/ir.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ir.png -------------------------------------------------------------------------------- /assets/images/flags/is.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/is.png -------------------------------------------------------------------------------- /assets/images/flags/it.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/it.png -------------------------------------------------------------------------------- /assets/images/flags/je.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/je.png -------------------------------------------------------------------------------- /assets/images/flags/jm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/jm.png -------------------------------------------------------------------------------- /assets/images/flags/jo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/jo.png -------------------------------------------------------------------------------- /assets/images/flags/jp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/jp.png -------------------------------------------------------------------------------- /assets/images/flags/ke.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ke.png -------------------------------------------------------------------------------- /assets/images/flags/kg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/kg.png -------------------------------------------------------------------------------- /assets/images/flags/kh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/kh.png -------------------------------------------------------------------------------- /assets/images/flags/ki.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ki.png -------------------------------------------------------------------------------- /assets/images/flags/km.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/km.png -------------------------------------------------------------------------------- /assets/images/flags/kn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/kn.png -------------------------------------------------------------------------------- /assets/images/flags/kp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/kp.png -------------------------------------------------------------------------------- /assets/images/flags/kr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/kr.png -------------------------------------------------------------------------------- /assets/images/flags/kw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/kw.png -------------------------------------------------------------------------------- /assets/images/flags/ky.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ky.png -------------------------------------------------------------------------------- /assets/images/flags/kz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/kz.png -------------------------------------------------------------------------------- /assets/images/flags/la.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/la.png -------------------------------------------------------------------------------- /assets/images/flags/lb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/lb.png -------------------------------------------------------------------------------- /assets/images/flags/lc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/lc.png -------------------------------------------------------------------------------- /assets/images/flags/li.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/li.png -------------------------------------------------------------------------------- /assets/images/flags/lk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/lk.png -------------------------------------------------------------------------------- /assets/images/flags/lr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/lr.png -------------------------------------------------------------------------------- /assets/images/flags/ls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ls.png -------------------------------------------------------------------------------- /assets/images/flags/lt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/lt.png -------------------------------------------------------------------------------- /assets/images/flags/lu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/lu.png -------------------------------------------------------------------------------- /assets/images/flags/lv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/lv.png -------------------------------------------------------------------------------- /assets/images/flags/ly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ly.png -------------------------------------------------------------------------------- /assets/images/flags/ma.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ma.png -------------------------------------------------------------------------------- /assets/images/flags/mc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mc.png -------------------------------------------------------------------------------- /assets/images/flags/md.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/md.png -------------------------------------------------------------------------------- /assets/images/flags/me.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/me.png -------------------------------------------------------------------------------- /assets/images/flags/mf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mf.png -------------------------------------------------------------------------------- /assets/images/flags/mg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mg.png -------------------------------------------------------------------------------- /assets/images/flags/mh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mh.png -------------------------------------------------------------------------------- /assets/images/flags/mk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mk.png -------------------------------------------------------------------------------- /assets/images/flags/ml.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ml.png -------------------------------------------------------------------------------- /assets/images/flags/mm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mm.png -------------------------------------------------------------------------------- /assets/images/flags/mn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mn.png -------------------------------------------------------------------------------- /assets/images/flags/mo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mo.png -------------------------------------------------------------------------------- /assets/images/flags/mp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mp.png -------------------------------------------------------------------------------- /assets/images/flags/mq.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mq.png -------------------------------------------------------------------------------- /assets/images/flags/mr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mr.png -------------------------------------------------------------------------------- /assets/images/flags/ms.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ms.png -------------------------------------------------------------------------------- /assets/images/flags/mt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mt.png -------------------------------------------------------------------------------- /assets/images/flags/mu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mu.png -------------------------------------------------------------------------------- /assets/images/flags/mv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mv.png -------------------------------------------------------------------------------- /assets/images/flags/mw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mw.png -------------------------------------------------------------------------------- /assets/images/flags/mx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mx.png -------------------------------------------------------------------------------- /assets/images/flags/my.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/my.png -------------------------------------------------------------------------------- /assets/images/flags/mz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/mz.png -------------------------------------------------------------------------------- /assets/images/flags/na.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/na.png -------------------------------------------------------------------------------- /assets/images/flags/nc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/nc.png -------------------------------------------------------------------------------- /assets/images/flags/ne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ne.png -------------------------------------------------------------------------------- /assets/images/flags/nf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/nf.png -------------------------------------------------------------------------------- /assets/images/flags/ng.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ng.png -------------------------------------------------------------------------------- /assets/images/flags/ni.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ni.png -------------------------------------------------------------------------------- /assets/images/flags/nl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/nl.png -------------------------------------------------------------------------------- /assets/images/flags/no.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/no.png -------------------------------------------------------------------------------- /assets/images/flags/np.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/np.png -------------------------------------------------------------------------------- /assets/images/flags/nr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/nr.png -------------------------------------------------------------------------------- /assets/images/flags/nu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/nu.png -------------------------------------------------------------------------------- /assets/images/flags/nz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/nz.png -------------------------------------------------------------------------------- /assets/images/flags/om.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/om.png -------------------------------------------------------------------------------- /assets/images/flags/pa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/pa.png -------------------------------------------------------------------------------- /assets/images/flags/pe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/pe.png -------------------------------------------------------------------------------- /assets/images/flags/pf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/pf.png -------------------------------------------------------------------------------- /assets/images/flags/pg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/pg.png -------------------------------------------------------------------------------- /assets/images/flags/ph.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ph.png -------------------------------------------------------------------------------- /assets/images/flags/pk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/pk.png -------------------------------------------------------------------------------- /assets/images/flags/pl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/pl.png -------------------------------------------------------------------------------- /assets/images/flags/pm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/pm.png -------------------------------------------------------------------------------- /assets/images/flags/pn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/pn.png -------------------------------------------------------------------------------- /assets/images/flags/pr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/pr.png -------------------------------------------------------------------------------- /assets/images/flags/ps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ps.png -------------------------------------------------------------------------------- /assets/images/flags/pt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/pt.png -------------------------------------------------------------------------------- /assets/images/flags/pw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/pw.png -------------------------------------------------------------------------------- /assets/images/flags/py.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/py.png -------------------------------------------------------------------------------- /assets/images/flags/qa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/qa.png -------------------------------------------------------------------------------- /assets/images/flags/re.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/re.png -------------------------------------------------------------------------------- /assets/images/flags/ro.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ro.png -------------------------------------------------------------------------------- /assets/images/flags/rs.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/rs.png -------------------------------------------------------------------------------- /assets/images/flags/ru.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ru.png -------------------------------------------------------------------------------- /assets/images/flags/rw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/rw.png -------------------------------------------------------------------------------- /assets/images/flags/sa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sa.png -------------------------------------------------------------------------------- /assets/images/flags/sb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sb.png -------------------------------------------------------------------------------- /assets/images/flags/sc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sc.png -------------------------------------------------------------------------------- /assets/images/flags/sd.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sd.png -------------------------------------------------------------------------------- /assets/images/flags/se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/se.png -------------------------------------------------------------------------------- /assets/images/flags/sg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sg.png -------------------------------------------------------------------------------- /assets/images/flags/sh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sh.png -------------------------------------------------------------------------------- /assets/images/flags/si.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/si.png -------------------------------------------------------------------------------- /assets/images/flags/sj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sj.png -------------------------------------------------------------------------------- /assets/images/flags/sk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sk.png -------------------------------------------------------------------------------- /assets/images/flags/sl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sl.png -------------------------------------------------------------------------------- /assets/images/flags/sm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sm.png -------------------------------------------------------------------------------- /assets/images/flags/sn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sn.png -------------------------------------------------------------------------------- /assets/images/flags/so.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/so.png -------------------------------------------------------------------------------- /assets/images/flags/sr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sr.png -------------------------------------------------------------------------------- /assets/images/flags/ss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ss.png -------------------------------------------------------------------------------- /assets/images/flags/st.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/st.png -------------------------------------------------------------------------------- /assets/images/flags/sv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sv.png -------------------------------------------------------------------------------- /assets/images/flags/sx.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sx.png -------------------------------------------------------------------------------- /assets/images/flags/sy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sy.png -------------------------------------------------------------------------------- /assets/images/flags/sz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/sz.png -------------------------------------------------------------------------------- /assets/images/flags/tc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tc.png -------------------------------------------------------------------------------- /assets/images/flags/td.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/td.png -------------------------------------------------------------------------------- /assets/images/flags/tf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tf.png -------------------------------------------------------------------------------- /assets/images/flags/tg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tg.png -------------------------------------------------------------------------------- /assets/images/flags/th.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/th.png -------------------------------------------------------------------------------- /assets/images/flags/tj.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tj.png -------------------------------------------------------------------------------- /assets/images/flags/tk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tk.png -------------------------------------------------------------------------------- /assets/images/flags/tl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tl.png -------------------------------------------------------------------------------- /assets/images/flags/tm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tm.png -------------------------------------------------------------------------------- /assets/images/flags/tn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tn.png -------------------------------------------------------------------------------- /assets/images/flags/to.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/to.png -------------------------------------------------------------------------------- /assets/images/flags/tr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tr.png -------------------------------------------------------------------------------- /assets/images/flags/tt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tt.png -------------------------------------------------------------------------------- /assets/images/flags/tv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tv.png -------------------------------------------------------------------------------- /assets/images/flags/tw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tw.png -------------------------------------------------------------------------------- /assets/images/flags/tz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/tz.png -------------------------------------------------------------------------------- /assets/images/flags/ua.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ua.png -------------------------------------------------------------------------------- /assets/images/flags/ug.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ug.png -------------------------------------------------------------------------------- /assets/images/flags/um.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/um.png -------------------------------------------------------------------------------- /assets/images/flags/us.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/us.png -------------------------------------------------------------------------------- /assets/images/flags/uy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/uy.png -------------------------------------------------------------------------------- /assets/images/flags/uz.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/uz.png -------------------------------------------------------------------------------- /assets/images/flags/va.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/va.png -------------------------------------------------------------------------------- /assets/images/flags/vc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/vc.png -------------------------------------------------------------------------------- /assets/images/flags/ve.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ve.png -------------------------------------------------------------------------------- /assets/images/flags/vg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/vg.png -------------------------------------------------------------------------------- /assets/images/flags/vi.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/vi.png -------------------------------------------------------------------------------- /assets/images/flags/vn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/vn.png -------------------------------------------------------------------------------- /assets/images/flags/vu.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/vu.png -------------------------------------------------------------------------------- /assets/images/flags/wf.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/wf.png -------------------------------------------------------------------------------- /assets/images/flags/ws.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ws.png -------------------------------------------------------------------------------- /assets/images/flags/xk.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/xk.png -------------------------------------------------------------------------------- /assets/images/flags/ye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/ye.png -------------------------------------------------------------------------------- /assets/images/flags/yt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/yt.png -------------------------------------------------------------------------------- /assets/images/flags/za.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/za.png -------------------------------------------------------------------------------- /assets/images/flags/zm.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/zm.png -------------------------------------------------------------------------------- /assets/images/flags/zw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/zw.png -------------------------------------------------------------------------------- /assets/images/flags/gb-eng.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gb-eng.png -------------------------------------------------------------------------------- /assets/images/flags/gb-nir.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gb-nir.png -------------------------------------------------------------------------------- /assets/images/flags/gb-sct.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gb-sct.png -------------------------------------------------------------------------------- /assets/images/flags/gb-wls.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nimishbansal/OlaLikeCountryPicker/HEAD/assets/images/flags/gb-wls.png -------------------------------------------------------------------------------- /lib/ola_like_country_picker.dart: -------------------------------------------------------------------------------- 1 | export 'src/country_listview.dart'; 2 | export 'src/Models/country.dart'; 3 | export 'src/Repository/countries_json.dart'; 4 | export 'src/country_picker.dart'; 5 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 20e59316b8b8474554b38493b8ca888794b0234a 8 | channel: stable 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /lib/src/Models/country.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/foundation.dart'; 2 | 3 | class Country { 4 | String name; 5 | String code; 6 | String dialCode; 7 | String extra; 8 | 9 | Country({ 10 | @required this.name, 11 | @required this.code, 12 | @required this.dialCode, 13 | this.extra, 14 | }); 15 | 16 | @override 17 | String toString() { 18 | return dialCode + code; 19 | } 20 | 21 | Country.fromJson(Map countryData) { 22 | name = countryData['Name']; 23 | code = countryData['ISO']; 24 | dialCode = countryData['Code']; 25 | } 26 | 27 | String get flagUri => "assets/images/flags/${code.toLowerCase()}.png"; 28 | } 29 | -------------------------------------------------------------------------------- /lib/src/example_widget.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'country_picker.dart'; 4 | 5 | class ExampleWidget extends StatefulWidget { 6 | @override 7 | State createState() { 8 | return ExampleWidgetState(); 9 | } 10 | } 11 | 12 | class ExampleWidgetState extends State { 13 | CountryPicker c; 14 | 15 | @override 16 | void initState() { 17 | super.initState(); 18 | c = CountryPicker(); 19 | } 20 | 21 | @override 22 | Widget build(BuildContext context) { 23 | return GestureDetector( 24 | child: Container(color: Colors.yellow[500]), 25 | onTap: () { 26 | c.launch(context); 27 | Future.delayed(Duration(seconds: 4), () { 28 | c.dismiss(); 29 | }); 30 | }); 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## [0.0.1] - 2019-10-06 2 | - Initial Release 3 | 4 | ## [0.0.2] - 2019-10-06 5 | 6 | ### Changed 7 | - Ran flutter format on lib/src directory 8 | 9 | 10 | ## [0.0.3] - 2019-10-06 11 | - Added example in example/ 12 | - modified Readme.md 13 | 14 | ## [0.0.4] - 2019-11-06 15 | - modified Readme.md 16 | 17 | ## [0.0.5] - 2019-11-06 18 | - modified Readme.md 19 | 20 | ## [0.0.5] - 2019-11-06 21 | - edited description 22 | 23 | ## [0.0.6] - 2019-11-06 24 | - edited description 25 | 26 | ## [0.0.7] - 2019-11-06 27 | - modified Readme.md 28 | 29 | ## [0.0.8] - 2019-17-06 30 | - exported country picker file as well 31 | - modified README.md 32 | 33 | ## [0.1.0] - 2019-19-06 34 | - added title property on country picker 35 | - modified README.md 36 | 37 | ## [0.1.1] - 2019-23-06 38 | - removed glowing effect on OverScrolling. 39 | 40 | ## [0.1.2] - 2020-16-06 41 | - removed unnecessary import that caused, Package not compatible with SDK dart 42 | - updated README.md 43 | -------------------------------------------------------------------------------- /example/example.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | import 'package:ola_like_country_picker/ola_like_country_picker.dart'; 3 | 4 | void main() => runApp(MyApp()); 5 | 6 | class MyApp extends StatelessWidget { 7 | @override 8 | Widget build(BuildContext context) { 9 | return MaterialApp( 10 | title: 'Flutter Demo', 11 | theme: ThemeData( 12 | primarySwatch: Colors.blue, 13 | ), 14 | home: MyHomePage(title: 'Flutter Demo Home Page'), 15 | ); 16 | } 17 | } 18 | 19 | class MyHomePage extends StatefulWidget { 20 | MyHomePage({Key key, this.title}) : super(key: key); 21 | final String title; 22 | @override 23 | _MyHomePageState createState() => _MyHomePageState(); 24 | } 25 | 26 | class _MyHomePageState extends State { 27 | CountryPicker c; 28 | Country country = Country.fromJson(countryCodes[94]); 29 | 30 | @override 31 | void initState() { 32 | super.initState(); 33 | c = CountryPicker(onCountrySelected: (Country country) { 34 | print(country); 35 | setState(() { 36 | this.country = country; 37 | }); 38 | }); 39 | } 40 | 41 | @override 42 | Widget build(BuildContext context) { 43 | return GestureDetector( 44 | child: Container( 45 | decoration: BoxDecoration( 46 | image: DecorationImage( 47 | image: 48 | AssetImage(country.flagUri, package: 'ola_like_country_picker'), 49 | ), 50 | ), 51 | ), 52 | onTap: () { 53 | c.launch(context); 54 | }, 55 | ); 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # The .vscode folder contains launch configuration and tasks you configure in 19 | # VS Code which you may wish to be included in version control, so this line 20 | # is commented out by default. 21 | #.vscode/ 22 | 23 | # Flutter/Dart/Pub related 24 | **/doc/api/ 25 | .dart_tool/ 26 | .flutter-plugins 27 | .packages 28 | .pub-cache/ 29 | .pub/ 30 | build/ 31 | 32 | # Android related 33 | **/android/**/gradle-wrapper.jar 34 | **/android/.gradle 35 | **/android/captures/ 36 | **/android/gradlew 37 | **/android/gradlew.bat 38 | **/android/local.properties 39 | **/android/**/GeneratedPluginRegistrant.java 40 | 41 | # iOS/XCode related 42 | **/ios/**/*.mode1v3 43 | **/ios/**/*.mode2v3 44 | **/ios/**/*.moved-aside 45 | **/ios/**/*.pbxuser 46 | **/ios/**/*.perspectivev3 47 | **/ios/**/*sync/ 48 | **/ios/**/.sconsign.dblite 49 | **/ios/**/.tags* 50 | **/ios/**/.vagrant/ 51 | **/ios/**/DerivedData/ 52 | **/ios/**/Icon? 53 | **/ios/**/Pods/ 54 | **/ios/**/.symlinks/ 55 | **/ios/**/profile 56 | **/ios/**/xcuserdata 57 | **/ios/.generated/ 58 | **/ios/Flutter/App.framework 59 | **/ios/Flutter/Flutter.framework 60 | **/ios/Flutter/Generated.xcconfig 61 | **/ios/Flutter/app.flx 62 | **/ios/Flutter/app.zip 63 | **/ios/Flutter/flutter_assets/ 64 | **/ios/ServiceDefinitions.json 65 | **/ios/Runner/GeneratedPluginRegistrant.* 66 | 67 | # Exceptions to above rules. 68 | !**/ios/**/default.mode1v3 69 | !**/ios/**/default.mode2v3 70 | !**/ios/**/default.pbxuser 71 | !**/ios/**/default.perspectivev3 72 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 73 | -------------------------------------------------------------------------------- /pubspec.yaml: -------------------------------------------------------------------------------- 1 | name: ola_like_country_picker 2 | description: A new Flutter package for country picker. ola_like_country_picker provides a bottom sheet allowing a user to select a country(with flag and dialcode)(optional) from a list. 3 | version: 0.1.2 4 | homepage: https://github.com/nimishbansal/OlaLikeCountryPicker 5 | 6 | environment: 7 | sdk: ">=2.1.0 <3.0.0" 8 | 9 | dependencies: 10 | flutter: 11 | sdk: flutter 12 | 13 | dev_dependencies: 14 | flutter_test: 15 | sdk: flutter 16 | 17 | # For information on the generic Dart part of this file, see the 18 | # following page: https://dart.dev/tools/pub/pubspec 19 | 20 | # The following section is specific to Flutter. 21 | flutter: 22 | assets: 23 | - assets/images/flags/ 24 | 25 | # To add assets to your package, add an assets section, like this: 26 | # assets: 27 | # - images/a_dot_burr.jpeg 28 | # - images/a_dot_ham.jpeg 29 | # 30 | # For details regarding assets in packages, see 31 | # https://flutter.dev/assets-and-images/#from-packages 32 | # 33 | # An image asset can refer to one or more resolution-specific "variants", see 34 | # https://flutter.dev/assets-and-images/#resolution-aware. 35 | 36 | # To add custom fonts to your package, add a fonts section here, 37 | # in this "flutter" section. Each entry in this list should have a 38 | # "family" key with the font family name, and a "fonts" key with a 39 | # list giving the asset and other descriptors for the font. For 40 | # example: 41 | # fonts: 42 | # - family: Schyler 43 | # fonts: 44 | # - asset: fonts/Schyler-Regular.ttf 45 | # - asset: fonts/Schyler-Italic.ttf 46 | # style: italic 47 | # - family: Trajan Pro 48 | # fonts: 49 | # - asset: fonts/TrajanPro.ttf 50 | # - asset: fonts/TrajanPro_Bold.ttf 51 | # weight: 700 52 | # 53 | # For details regarding fonts in packages, see 54 | # https://flutter.dev/custom-fonts/#from-packages 55 | -------------------------------------------------------------------------------- /pubspec.lock: -------------------------------------------------------------------------------- 1 | # Generated by pub 2 | # See https://dart.dev/tools/pub/glossary#lockfile 3 | packages: 4 | async: 5 | dependency: transitive 6 | description: 7 | name: async 8 | url: "https://pub.dartlang.org" 9 | source: hosted 10 | version: "2.4.1" 11 | boolean_selector: 12 | dependency: transitive 13 | description: 14 | name: boolean_selector 15 | url: "https://pub.dartlang.org" 16 | source: hosted 17 | version: "2.0.0" 18 | charcode: 19 | dependency: transitive 20 | description: 21 | name: charcode 22 | url: "https://pub.dartlang.org" 23 | source: hosted 24 | version: "1.1.3" 25 | clock: 26 | dependency: transitive 27 | description: 28 | name: clock 29 | url: "https://pub.dartlang.org" 30 | source: hosted 31 | version: "1.0.1" 32 | collection: 33 | dependency: transitive 34 | description: 35 | name: collection 36 | url: "https://pub.dartlang.org" 37 | source: hosted 38 | version: "1.14.12" 39 | fake_async: 40 | dependency: transitive 41 | description: 42 | name: fake_async 43 | url: "https://pub.dartlang.org" 44 | source: hosted 45 | version: "1.1.0" 46 | flutter: 47 | dependency: "direct main" 48 | description: flutter 49 | source: sdk 50 | version: "0.0.0" 51 | flutter_test: 52 | dependency: "direct dev" 53 | description: flutter 54 | source: sdk 55 | version: "0.0.0" 56 | matcher: 57 | dependency: transitive 58 | description: 59 | name: matcher 60 | url: "https://pub.dartlang.org" 61 | source: hosted 62 | version: "0.12.6" 63 | meta: 64 | dependency: transitive 65 | description: 66 | name: meta 67 | url: "https://pub.dartlang.org" 68 | source: hosted 69 | version: "1.1.8" 70 | path: 71 | dependency: transitive 72 | description: 73 | name: path 74 | url: "https://pub.dartlang.org" 75 | source: hosted 76 | version: "1.7.0" 77 | sky_engine: 78 | dependency: transitive 79 | description: flutter 80 | source: sdk 81 | version: "0.0.99" 82 | source_span: 83 | dependency: transitive 84 | description: 85 | name: source_span 86 | url: "https://pub.dartlang.org" 87 | source: hosted 88 | version: "1.7.0" 89 | stack_trace: 90 | dependency: transitive 91 | description: 92 | name: stack_trace 93 | url: "https://pub.dartlang.org" 94 | source: hosted 95 | version: "1.9.3" 96 | stream_channel: 97 | dependency: transitive 98 | description: 99 | name: stream_channel 100 | url: "https://pub.dartlang.org" 101 | source: hosted 102 | version: "2.0.0" 103 | string_scanner: 104 | dependency: transitive 105 | description: 106 | name: string_scanner 107 | url: "https://pub.dartlang.org" 108 | source: hosted 109 | version: "1.0.5" 110 | term_glyph: 111 | dependency: transitive 112 | description: 113 | name: term_glyph 114 | url: "https://pub.dartlang.org" 115 | source: hosted 116 | version: "1.1.0" 117 | test_api: 118 | dependency: transitive 119 | description: 120 | name: test_api 121 | url: "https://pub.dartlang.org" 122 | source: hosted 123 | version: "0.2.16" 124 | typed_data: 125 | dependency: transitive 126 | description: 127 | name: typed_data 128 | url: "https://pub.dartlang.org" 129 | source: hosted 130 | version: "1.1.6" 131 | vector_math: 132 | dependency: transitive 133 | description: 134 | name: vector_math 135 | url: "https://pub.dartlang.org" 136 | source: hosted 137 | version: "2.0.8" 138 | sdks: 139 | dart: ">=2.7.0 <3.0.0" 140 | -------------------------------------------------------------------------------- /lib/src/country_listview.dart: -------------------------------------------------------------------------------- 1 | import 'package:flutter/material.dart'; 2 | 3 | import 'Models/country.dart'; 4 | import 'Repository/countries_json.dart'; 5 | 6 | /// Signature used by [CountryListView] to indicate which country has been selected 7 | /// 8 | /// Used by [CountryListView.onSelected]. 9 | /// 10 | /// Called when the country has been selected. 11 | typedef OnCountrySelectedCallback = Function(Country country); 12 | 13 | /// Signature used by [CountryListView] to give the application an opportunity to create their 14 | /// own version of listItem used in [_CountryListViewState.build] 15 | /// 16 | /// Used by [CountryListView.itemBuilder] in [_CountryListViewState._buildListItem] 17 | typedef ListItemBuilder = Widget Function( 18 | BuildContext context, int index, Country country); 19 | 20 | enum ListItemFlagTitleCodeOrder { 21 | ///DialCode first, then Country name, then Flag 22 | dialCodeToTileToFlag, 23 | 24 | ///Flag first, then Country name, then DialCode 25 | flagToTitleToDialCode 26 | } 27 | 28 | /// A widget that is used to display list of countries with their flags, name and mobile codes. 29 | /// 30 | /// When a list item in this widget is tapped it causes the country to be selected and executes 31 | /// [onSelected] callback 32 | // ignore: must_be_immutable 33 | class CountryListView extends StatefulWidget { 34 | /// Json List of Countries Details 35 | /// 36 | /// e.g 37 | /// ```dart 38 | /// [ 39 | /// {"Name": "Afghanistan", "ISO": "af", "Code": "93"}, 40 | /// {"Name": "Albania", "ISO": "al", "Code": "355"}, 41 | /// {"Name": "Algeria", "ISO": "dz", "Code": "213"}, 42 | /// ] 43 | /// ``` 44 | final List countryJsonList; 45 | 46 | /// List of Country instances from the [countryJsonList] 47 | List countries; 48 | 49 | /// background of list tile in list view 50 | final Color backgroundColor; 51 | 52 | /// Called when the country has been selected 53 | OnCountrySelectedCallback onSelected; 54 | 55 | /// builder for making own version of country list item e.g 56 | /// ```dart 57 | /// CountryListView( 58 | /// itemBuilder : (BuildContext context, int index, Country country){ 59 | /// return new ListTile( 60 | /// title: new Text(country.name, style: widget.itemTitleStyle,), 61 | /// onTap: (){ 62 | /// widget.onSelected(country); 63 | /// } 64 | /// ); 65 | /// }, 66 | /// ) 67 | /// ``` 68 | /// 69 | /// When itemBuilder is provided by the application properties like 70 | /// [flagWidth], [flagHeight], [showFlag], [showDialCode], [itemTitleStyle] 71 | /// e.t.c won't work. 72 | final ListItemBuilder itemBuilder; 73 | 74 | /// It is base path where all the images(.png) of all the flags are present with filename as their 75 | /// country codes 76 | final flagBasePath; 77 | 78 | final double flagWidth; 79 | final double flagHeight; 80 | final bool showFlag; 81 | final bool showDialCode; 82 | 83 | /// It is a prefix that is prepended to each countryDialCode 84 | /// By default it is '+' 85 | final String dialCodePrefix; 86 | 87 | /// It gives application an opportunity to give style to title of the country in listItem 88 | final TextStyle itemTitleStyle; 89 | 90 | /// It gives application an opportunity to give style to dialCode of the country in listItem 91 | final TextStyle dialCodeStyle; 92 | 93 | final ListItemFlagTitleCodeOrder flagTitleCodeOrder; 94 | 95 | final bool primary; 96 | 97 | final bool shrinkWrap; 98 | 99 | ScrollPhysics scrollPhysics; 100 | 101 | final ScrollController scrollController; 102 | CountryListView({ 103 | Key key, 104 | this.countryJsonList = countryCodes, 105 | this.backgroundColor = Colors.white, 106 | this.onSelected, 107 | this.itemBuilder, 108 | this.flagBasePath = "assets/images/flags/", 109 | this.flagWidth = 25, 110 | this.flagHeight = 25, 111 | this.showFlag = true, 112 | this.showDialCode = true, 113 | this.dialCodePrefix = '+', 114 | this.itemTitleStyle, 115 | this.dialCodeStyle, 116 | this.flagTitleCodeOrder = ListItemFlagTitleCodeOrder.flagToTitleToDialCode, 117 | this.scrollPhysics, 118 | this.primary = false, 119 | this.scrollController, 120 | this.shrinkWrap = false 121 | }) : countries = countryJsonList 122 | .map((countryData) => Country.fromJson(countryData)) 123 | .toList(), 124 | super(key: key); 125 | 126 | @override 127 | State createState() { 128 | return _CountryListViewState(); 129 | } 130 | } 131 | 132 | class _CountryListViewState extends State { 133 | Widget getFlag(Country country) { 134 | String flagPath = "${widget.flagBasePath}${country.code.toLowerCase()}.png"; 135 | return Container( 136 | width: widget.flagWidth, 137 | height: widget.flagHeight, 138 | child: Image( 139 | image: new AssetImage(flagPath, package: 'ola_like_country_picker'), 140 | ), 141 | ); 142 | } 143 | 144 | Widget _buildListItem(BuildContext context, int index, Country country) { 145 | if (widget.itemBuilder != null) { 146 | // Use itemBuilder by the application, if provided. 147 | return widget.itemBuilder(context, index, country); 148 | } else { 149 | Widget leadingWidget; 150 | Widget trailingWidget; 151 | String fullDialCode; 152 | fullDialCode = widget.dialCodePrefix + country.dialCode; 153 | if (widget.flagTitleCodeOrder == 154 | ListItemFlagTitleCodeOrder.flagToTitleToDialCode) { 155 | leadingWidget = widget.showFlag ? getFlag(country) : null; 156 | trailingWidget = widget.showDialCode 157 | ? Text( 158 | fullDialCode, 159 | style: widget.dialCodeStyle, 160 | ) 161 | : null; 162 | } else { 163 | leadingWidget = widget.showDialCode 164 | ? Text( 165 | fullDialCode, 166 | style: widget.dialCodeStyle, 167 | ) 168 | : null; 169 | trailingWidget = widget.showFlag ? getFlag(country) : null; 170 | } 171 | 172 | return new ListTile( 173 | leading: leadingWidget, 174 | title: new Text( 175 | country.name, 176 | style: widget.itemTitleStyle, 177 | ), 178 | trailing: trailingWidget, 179 | onTap: () { 180 | widget.onSelected(country); 181 | }); 182 | } 183 | } 184 | 185 | @override 186 | Widget build(BuildContext context) { 187 | return MediaQuery.removePadding( 188 | context: context, 189 | removeTop: true, 190 | child: ListView.builder( 191 | shrinkWrap: widget.shrinkWrap, 192 | controller: widget.scrollController, 193 | primary: widget.primary, 194 | physics: widget.scrollPhysics, 195 | itemCount: widget.countries.length, 196 | itemBuilder: (context, index) { 197 | return _buildListItem(context, index, widget.countries[index]); 198 | }), 199 | ); 200 | } 201 | } 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Ola Like Country Picker 2 | ========================== 3 | 4 | A new country picker Flutter package built in Dart. 5 | 6 | ## Introduction 7 | It is Flutter plug-n-play country picker package. 8 | 9 | 0. Simple two lines of code. Initialize and Launch. 10 | ```dart 11 | CountryPicker countryPicker = CountryPicker( 12 | onCountrySelected:(country){ 13 | print(country); 14 | }, 15 | ); 16 | countryPicker.launch(context) 17 | ``` 18 | 19 | ## Installation 20 | https://pub.dev/packages/ola_like_country_picker#-installing-tab- 21 | 22 | 23 | 24 | 1. To use the Country Picker look at the example below : 25 | 26 | ### Example Usage: 27 | ```dart 28 | class _MyHomePageState extends State { 29 | CountryPicker countryPicker; 30 | Country country = Country.fromJson(countryCodes[0]); // select initial country 31 | 32 | @override 33 | void initState() { 34 | super.initState(); 35 | countryPicker = CountryPicker(onCountrySelected: (Country country) { 36 | print(country); 37 | setState(() { 38 | this.country = country; 39 | }); 40 | }); 41 | } 42 | 43 | @override 44 | Widget build(BuildContext context) { 45 | // To simply launch the country picker 46 | // use countryPicker.launch(context) 47 | // to forcefully dismiss use countryPicker.dismiss() 48 | // simple example could be 49 | return GestureDetector( 50 | child: Container( 51 | decoration: BoxDecoration( 52 | image: DecorationImage( 53 | image: 54 | AssetImage(country.flagUri, package: 'ola_like_country_picker'), 55 | ), 56 | ), 57 | ), 58 | onTap: () { 59 | countryPicker.launch(context); 60 | }, 61 | ); 62 | 63 | } 64 | } 65 | ``` 66 | 67 | ### Output 68 | 69 | 70 | 71 | 72 | ### Parameters 73 | | parameter | default | required | type | remark | 74 | |-------------------|-----------------------|-----------|---------------------------|---------------------------------- 75 | | onCountrySelected | null | yes | OnCountrySelectedCallback | called when country is selected. | 76 | | showTitle | true | no | bool | whether to show title or not. | 77 | | titleText | "Select your country" | no | String | text for title. | 78 | 79 | 80 | 81 | 82 | 2. To simply use country list view any where use CountryListView() and to modify attributes like flagWidth, flagHeight, countryTitle style etc use below arguments like 83 | ```dart 84 | CountryListView(flagWidth:50, flagHeight:50 , itemTitleStyle: TextStyle(fontSize:20)); 85 | ``` 86 | 87 | ### Example Usage: 88 | ```dart 89 | return MaterialApp( 90 | theme: ThemeData(primarySwatch: Colors.purple), 91 | home: Scaffold( 92 | appBar: AppBar( 93 | title: Text('Select Country'), 94 | ), 95 | body: CountryListView(), 96 | ), 97 | ); 98 | ``` 99 | 100 | ### Output 101 | 102 | 103 | ### Parameters 104 | | parameter | default | required | type | remark | 105 | |-----------------|---------------|----------|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------| 106 | | countryJsonList | country_codes | no | List> | can be used to specify own set of sublist of countries from the variable country_codes | 107 | | flagWidth | 25 | no | double | width of flag | 108 | | flagHeight | 25 | no | double | height of flag | 109 | | showFlag | true | no | bool | whether to show flag or not | 110 | | showDialCode | true | no | bool | whether to show dial code or not | 111 | | dialCodePrefix | '+' | no | String | The prefix added to the dial code for e.g +91 here prefix is '+' | 112 | | itemTitleStyle | null | no | TextStyle | Used to change style of Country title e.g TextStyle(fontSize:30) | 113 | | dialCodeStyle | null | no | TextStyle | Used to change style of Country's dial code e.g TextStyle(backgroundColor:Colors.green[400]) | 114 | | onSelected | null | no | OnCountrySelectedCallback | When Any Country is selected what callback has to be executed e.g CountryListView(onSelected: (Country country){ print(country.toString() }); | 115 | 116 | 117 | 118 | 3. To use the own version of CountryListView() with CountryPicker() use setCountryListView() method before calling launch() 119 | e.g. 120 | ```dart 121 | c = CountryPicker(onCountrySelected: (Country country) { 122 | print(country); 123 | setState(() { 124 | this.country = country; 125 | }); 126 | }); 127 | CountryListView clv = CountryListView(showFlag:false); //own version of CountryListView 128 | c.setCountryListView(clv); 129 | ... 130 | ... 131 | // Call c.launch(context) in GestureDetector() or other listeners 132 | ... 133 | ... 134 | 135 | ``` 136 | 137 | ## Support 138 | 139 | The simplest way to show your support is by giving the project a star. 140 | 141 | You can also support by becoming a patron on Patreon: 142 | 143 | [![Patreon](https://c5.patreon.com/external/logo/become_a_patron_button.png)](https://www.patreon.com/nimishbansal) 144 | 145 | Or by making a single donation by buying a coffee: 146 | 147 | [![Buy Me A Coffee](https://cdn.buymeacoffee.com/buttons/default-orange.png)](https://www.buymeacoffee.com/nimishbansal) 148 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "[]" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright [yyyy] [name of copyright owner] 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /lib/src/country_picker.dart: -------------------------------------------------------------------------------- 1 | import 'dart:async'; 2 | import 'package:flutter/material.dart'; 3 | 4 | import 'Models/country.dart'; 5 | import 'country_listview.dart'; 6 | 7 | enum _FlingGestureKind { none, fling_down, fling_up } 8 | const double _kMinFlingVelocity = 700.0; 9 | const _kGreyOpacity = Color.fromRGBO(129, 129, 129, 0.5); 10 | const _kTransitionDuration = Duration(milliseconds: 300); 11 | 12 | /// Used by [CustomScrollPhysics.createBallisticSimulation] 13 | /// * See Also : 14 | /// https://github.com/flutter/flutter/blob/2d2a1ffec9/packages/flutter/lib/src/widgets/dismissible.dart#L375 15 | _FlingGestureKind _describeFlingGesture(double velocity) { 16 | final double vy = velocity; 17 | if (vy.abs() < _kMinFlingVelocity) return _FlingGestureKind.none; 18 | if (vy < 0) 19 | return _FlingGestureKind.fling_down; 20 | else if (vy > 0) 21 | return _FlingGestureKind.fling_up; 22 | else 23 | return _FlingGestureKind.none; 24 | } 25 | 26 | class _CountryPickerWidget extends StatefulWidget { 27 | /// how much drag extent is necessary to expand the sheet 28 | final double dismissThreshold; 29 | 30 | final OnCountrySelectedCallback onSelected; 31 | 32 | final BuildContext context; 33 | 34 | /// [CountryListView] being used in this Widget 35 | final CountryListView countryListView; 36 | 37 | /// Used when this widget is initialized by [CountryPicker] 38 | final CountryPicker countryPickerUtil; 39 | 40 | const _CountryPickerWidget({ 41 | Key key, 42 | this.dismissThreshold = 50, 43 | this.onSelected, 44 | this.context, 45 | this.countryListView, 46 | this.countryPickerUtil, 47 | }) : assert(onSelected != null), 48 | super(key: key); 49 | 50 | @override 51 | State createState() { 52 | return _CountryPickerWidgetState(this.countryListView, context); 53 | } 54 | } 55 | 56 | class CustomScrollPhysics extends ScrollPhysics { 57 | final _CountryPickerWidgetState countryPickerWidgetState; 58 | 59 | const CustomScrollPhysics( 60 | {this.countryPickerWidgetState, ScrollPhysics parent}) 61 | : super(parent: parent); 62 | 63 | @override 64 | CustomScrollPhysics applyTo(ScrollPhysics ancestor) => CustomScrollPhysics( 65 | countryPickerWidgetState: countryPickerWidgetState, 66 | parent: buildParent(ancestor)); 67 | 68 | @override 69 | double applyPhysicsToUserOffset(ScrollMetrics position, double offset) { 70 | if (countryPickerWidgetState.height >= countryPickerWidgetState.maxHeight) { 71 | // Dragging down the list view when position in list view is at leading edge 72 | if (offset.sign == 1.0 && position.atEdge && position.pixels == 0.0) { 73 | this.countryPickerWidgetState.changeHeightWhenDragged(-offset); 74 | return 0; 75 | } 76 | return super.applyPhysicsToUserOffset(position, offset); 77 | } else { 78 | this.countryPickerWidgetState.changeHeightWhenDragged(-offset); 79 | return 0; 80 | } 81 | } 82 | 83 | @override 84 | bool shouldAcceptUserOffset(ScrollMetrics position) => true; 85 | 86 | @override 87 | Simulation createBallisticSimulation( 88 | ScrollMetrics position, double velocity) { 89 | if (_describeFlingGesture(velocity) == _FlingGestureKind.fling_up) { 90 | if (position.pixels == 0.0 && 91 | countryPickerWidgetState.height < 92 | countryPickerWidgetState.maxHeight) { 93 | countryPickerWidgetState.maximizeSheetHeight(); 94 | return null; 95 | } 96 | } else if (_describeFlingGesture(velocity) == 97 | _FlingGestureKind.fling_down) { 98 | if (position.pixels == 0) { 99 | this.countryPickerWidgetState.minimizeSheetHeight(); 100 | return null; 101 | } 102 | } else if (_describeFlingGesture(velocity) == _FlingGestureKind.none) { 103 | //Maximize or minimize when drag gesture is ended without fling. 104 | //Either it maximizes or minimizes depending on current position and dismiss threshold 105 | double dismissThreshold = 106 | countryPickerWidgetState.widget.dismissThreshold; 107 | if (position.pixels == 0 && 108 | !this.countryPickerWidgetState.motionUnderway) { 109 | var maxMinHeightDifference = (countryPickerWidgetState.maxHeight - 110 | countryPickerWidgetState.minHeight); 111 | var offset = (countryPickerWidgetState.height - 112 | countryPickerWidgetState.minHeight); 113 | 114 | if (((offset / maxMinHeightDifference) * 100) > dismissThreshold && 115 | countryPickerWidgetState.height != 116 | countryPickerWidgetState.maxHeight) 117 | countryPickerWidgetState.maximizeSheetHeight(); 118 | else if (((offset / maxMinHeightDifference) * 100) <= 119 | dismissThreshold && 120 | countryPickerWidgetState.height != 121 | countryPickerWidgetState.minHeight) 122 | countryPickerWidgetState.minimizeSheetHeight(); 123 | 124 | return null; 125 | } 126 | } 127 | 128 | var result = super.createBallisticSimulation(position, velocity); 129 | if (result.runtimeType == ClampingScrollSimulation && 130 | velocity.abs() > 0 && 131 | velocity.abs() < _kMinFlingVelocity) { 132 | return null; 133 | } 134 | return result; 135 | } 136 | } 137 | 138 | /// Modifies the Scroll Behaviour of [CountryListView]. 139 | /// 140 | /// Removes Glowing effect on Overscroll. 141 | /// See Also: 142 | /// * https://stackoverflow.com/a/51119796/7698247 143 | class _CustomScrollBehavior extends ScrollBehavior { 144 | @override 145 | Widget buildViewportChrome( 146 | BuildContext context, Widget child, AxisDirection axisDirection) { 147 | return child; 148 | } 149 | } 150 | 151 | class _CountryPickerWidgetState extends State<_CountryPickerWidget> { 152 | /// Maximum Height of the Container in which the list view is wrapped 153 | double maxHeight; 154 | 155 | /// Minimum Height of the Container in which the list view is wrapped 156 | double minHeight; 157 | 158 | /// Current height of Container in which list view is wrapped 159 | /// 160 | /// It is dynamic and changes linearly when it is being dragged and changes cubically 161 | /// when flung or released. 162 | double height; 163 | 164 | /// true if container in which the list view is wrapped is moving 165 | bool motionUnderway = false; 166 | 167 | /// Dynamic duration to be used while flinging or dragging 168 | Duration duration = Duration.zero; 169 | 170 | /// Curve to be used by AnimatedContainer 171 | Curve curve = Curves.linear; 172 | 173 | CountryListView countryListView; 174 | 175 | _CountryPickerWidgetState(CountryListView countryListView, context) { 176 | maxHeight = 177 | MediaQuery.of(context).size.height - MediaQuery.of(context).padding.top; 178 | minHeight = 240; 179 | height = minHeight; 180 | 181 | if (countryListView == null) { 182 | this.countryListView = CountryListView(); 183 | } else { 184 | this.countryListView = countryListView; 185 | } 186 | // Attribute scrollPhysics must be of type CustomScrollPhysics when list view is 187 | // provided by user 188 | this.countryListView.scrollPhysics = 189 | CustomScrollPhysics(countryPickerWidgetState: this); 190 | this.countryListView.onSelected = _handleOnCountrySelect; 191 | } 192 | 193 | /// Change the height of AnimatedContainer linearly while dragging. 194 | changeHeightWhenDragged(double offset) { 195 | setState(() { 196 | height += offset; 197 | }); 198 | } 199 | 200 | /// Expands CountryListView to occupy full Screen animatedly with ease-curve. 201 | void maximizeSheetHeight() { 202 | setState(() { 203 | motionUnderway = true; 204 | duration = _kTransitionDuration; 205 | curve = Curves.ease; 206 | height = maxHeight; 207 | }); 208 | Future.delayed(_kTransitionDuration, () { 209 | setState(() { 210 | motionUnderway = false; 211 | duration = Duration.zero; 212 | curve = Curves.linear; 213 | }); 214 | }); 215 | } 216 | 217 | @override 218 | void initState() { 219 | super.initState(); 220 | } 221 | 222 | /// Minimizes the CountryListView height to occupy fraction of bottom. 223 | void minimizeSheetHeight() { 224 | setState(() { 225 | motionUnderway = true; 226 | duration = _kTransitionDuration; 227 | curve = Curves.ease; 228 | height = minHeight; 229 | }); 230 | Future.delayed(_kTransitionDuration, () { 231 | setState(() { 232 | motionUnderway = false; 233 | duration = Duration.zero; 234 | curve = Curves.linear; 235 | }); 236 | }); 237 | } 238 | 239 | _handleOnCountrySelect(Country country) { 240 | if (widget.countryPickerUtil != null) { 241 | widget.countryPickerUtil.dismiss(); 242 | } 243 | widget.onSelected(country); 244 | } 245 | 246 | @override 247 | Widget build(BuildContext context) { 248 | return Stack( 249 | children: [ 250 | // Opacity 251 | GestureDetector( 252 | child: Container( 253 | height: MediaQuery.of(context).size.height, 254 | width: MediaQuery.of(context).size.width, 255 | color: _kGreyOpacity, 256 | ), 257 | onTap: () { 258 | widget.countryPickerUtil.dismiss(); 259 | }, 260 | ), 261 | 262 | // Bottom Sheet 263 | Align( 264 | alignment: Alignment.bottomCenter, 265 | child: Material( 266 | elevation: 10, 267 | child: AnimatedContainer( 268 | color: Colors.white, 269 | duration: duration, 270 | curve: curve, 271 | child: Column( 272 | crossAxisAlignment: CrossAxisAlignment.start, 273 | mainAxisAlignment: MainAxisAlignment.start, 274 | children: [ 275 | widget.countryPickerUtil.showTitle 276 | ? Padding( 277 | child: Text( 278 | widget.countryPickerUtil.titleText, 279 | style: TextStyle( 280 | fontWeight: FontWeight.bold, fontSize: 16), 281 | ), 282 | padding: EdgeInsets.only(top: 12, left: 12), 283 | ) 284 | : SizedBox( 285 | height: 0, 286 | width: 0, 287 | ), 288 | Expanded( 289 | child: ScrollConfiguration( 290 | behavior: _CustomScrollBehavior(), 291 | child: this.countryListView), 292 | ), 293 | ], 294 | ), 295 | height: height, 296 | ), 297 | )), 298 | ], 299 | ); 300 | } 301 | } 302 | 303 | class CountryPicker { 304 | /// Overlay Entry to display [_CountryPickerWidget] over the app. 305 | OverlayEntry overlayEntry; 306 | 307 | /// Actual [CountryListView] view to be used in [_CountryPickerWidget]. 308 | CountryListView countryListView; 309 | 310 | /// Called when country has been selected. 311 | OnCountrySelectedCallback _onCountrySelected; 312 | 313 | /// Title above [CountryListView] in [CountryPicker] widget. 314 | /// 315 | /// By default titleText is "Select your Country" 316 | String titleText = 'Select Your Country'; 317 | 318 | /// Determines whether the [titleText] will be visible above the 319 | /// [CountryListView] widget. 320 | bool showTitle = true; 321 | 322 | CountryPicker({ 323 | OnCountrySelectedCallback onCountrySelected, 324 | String titleText, 325 | bool showTitle, 326 | }) { 327 | this.countryListView = CountryListView(); 328 | this._onCountrySelected = onCountrySelected; 329 | this.titleText = titleText ?? this.titleText; 330 | this.showTitle = showTitle ?? this.showTitle; 331 | } 332 | 333 | void setCountryListView(CountryListView countryListView) { 334 | assert( 335 | countryListView.onSelected == null || this._onCountrySelected == null); 336 | this.countryListView = countryListView; 337 | if (countryListView.onSelected != null) 338 | this._onCountrySelected = countryListView.onSelected; 339 | } 340 | 341 | void launch(BuildContext context) { 342 | overlayEntry = new OverlayEntry(builder: _builder); 343 | Overlay.of(context).insert(overlayEntry); 344 | } 345 | 346 | void dismiss() { 347 | overlayEntry.remove(); 348 | } 349 | 350 | Widget _builder(BuildContext context) { 351 | return _CountryPickerWidget( 352 | context: context, 353 | onSelected: _onCountrySelected, 354 | countryPickerUtil: this, 355 | countryListView: countryListView, 356 | ); 357 | } 358 | } 359 | -------------------------------------------------------------------------------- /lib/src/Repository/countries_json.dart: -------------------------------------------------------------------------------- 1 | const List> countryCodes = [ 2 | {"Name": "Afghanistan", "ISO": "af", "Code": "93"}, 3 | {"Name": "Albania", "ISO": "al", "Code": "355"}, 4 | {"Name": "Algeria", "ISO": "dz", "Code": "213"}, 5 | {"Name": "American Samoa", "ISO": "as", "Code": "1684"}, 6 | {"Name": "Andorra", "ISO": "ad", "Code": "376"}, 7 | {"Name": "Angola", "ISO": "ao", "Code": "244"}, 8 | {"Name": "Anguilla", "ISO": "ai", "Code": "1264"}, 9 | {"Name": "Antigua and Barbuda", "ISO": "ag", "Code": "1268"}, 10 | {"Name": "Argentina", "ISO": "ar", "Code": "54"}, 11 | {"Name": "Armenia", "ISO": "am", "Code": "374"}, 12 | {"Name": "Aruba", "ISO": "aw", "Code": "297"}, 13 | {"Name": "Australia", "ISO": "au", "Code": "61"}, 14 | {"Name": "Austria", "ISO": "at", "Code": "43"}, 15 | {"Name": "Azerbaijan", "ISO": "az", "Code": "994"}, 16 | {"Name": "Bahamas", "ISO": "bs", "Code": "1242"}, 17 | {"Name": "Bahrain", "ISO": "bh", "Code": "973"}, 18 | {"Name": "Bangladesh", "ISO": "bd", "Code": "880"}, 19 | {"Name": "Barbados", "ISO": "bb", "Code": "1246"}, 20 | {"Name": "Belarus", "ISO": "by", "Code": "375"}, 21 | {"Name": "Belgium", "ISO": "be", "Code": "32"}, 22 | {"Name": "Belize", "ISO": "bz", "Code": "501"}, 23 | {"Name": "Benin", "ISO": "bj", "Code": "229"}, 24 | {"Name": "Bermuda", "ISO": "bm", "Code": "1441"}, 25 | {"Name": "Bhutan", "ISO": "bt", "Code": "975"}, 26 | {"Name": "Bolivia", "ISO": "bo", "Code": "591"}, 27 | {"Name": "Bosnia and Herzegovina", "ISO": "ba", "Code": "387"}, 28 | {"Name": "Botswana", "ISO": "bw", "Code": "267"}, 29 | {"Name": "Brazil", "ISO": "br", "Code": "55"}, 30 | {"Name": "British Indian Ocean Territory", "ISO": "io", "Code": "246"}, 31 | {"Name": "British Virgin Islands", "ISO": "vg", "Code": "1284"}, 32 | {"Name": "Brunei", "ISO": "bn", "Code": "673"}, 33 | {"Name": "Bulgaria", "ISO": "bg", "Code": "359"}, 34 | {"Name": "Burkina Faso", "ISO": "bf", "Code": "226"}, 35 | {"Name": "Burundi", "ISO": "bi", "Code": "257"}, 36 | {"Name": "Cambodia", "ISO": "kh", "Code": "855"}, 37 | {"Name": "Cameroon", "ISO": "cm", "Code": "237"}, 38 | {"Name": "Canada", "ISO": "ca", "Code": "1"}, 39 | {"Name": "Cape Verde", "ISO": "cv", "Code": "238"}, 40 | {"Name": "Caribbean Netherlands", "ISO": "bq", "Code": "599"}, 41 | {"Name": "Cayman Islands", "ISO": "ky", "Code": "1345"}, 42 | {"Name": "Central African Republic", "ISO": "cf", "Code": "236"}, 43 | {"Name": "Chad", "ISO": "td", "Code": "235"}, 44 | {"Name": "Chile", "ISO": "cl", "Code": "56"}, 45 | {"Name": "China", "ISO": "cn", "Code": "86"}, 46 | {"Name": "Colombia", "ISO": "co", "Code": "57"}, 47 | {"Name": "Comoros", "ISO": "km", "Code": "269"}, 48 | {"Name": "Congo (DRC)", "ISO": "cd", "Code": "243"}, 49 | {"Name": "Congo (Republic)", "ISO": "cg", "Code": "242"}, 50 | {"Name": "Cook Islands", "ISO": "ck", "Code": "682"}, 51 | {"Name": "Costa Rica", "ISO": "cr", "Code": "506"}, 52 | {"Name": "Côte d’Ivoire", "ISO": "ci", "Code": "225"}, 53 | {"Name": "Croatia", "ISO": "hr", "Code": "385"}, 54 | {"Name": "Cuba", "ISO": "cu", "Code": "53"}, 55 | {"Name": "Curaçao", "ISO": "cw", "Code": "599"}, 56 | {"Name": "Cyprus", "ISO": "cy", "Code": "357"}, 57 | {"Name": "Czech Republic", "ISO": "cz", "Code": "420"}, 58 | {"Name": "Denmark", "ISO": "dk", "Code": "45"}, 59 | {"Name": "Djibouti", "ISO": "dj", "Code": "253"}, 60 | {"Name": "Dominica", "ISO": "dm", "Code": "1767"}, 61 | {"Name": "Dominican Republic", "ISO": "do", "Code": "1"}, 62 | {"Name": "Ecuador", "ISO": "ec", "Code": "593"}, 63 | {"Name": "Egypt", "ISO": "eg", "Code": "20"}, 64 | {"Name": "El Salvador", "ISO": "sv", "Code": "503"}, 65 | {"Name": "Equatorial Guinea", "ISO": "gq", "Code": "240"}, 66 | {"Name": "Eritrea", "ISO": "er", "Code": "291"}, 67 | {"Name": "Estonia", "ISO": "ee", "Code": "372"}, 68 | {"Name": "Ethiopia", "ISO": "et", "Code": "251"}, 69 | {"Name": "Falkland Islands", "ISO": "fk", "Code": "500"}, 70 | {"Name": "Faroe Islands", "ISO": "fo", "Code": "298"}, 71 | {"Name": "Fiji", "ISO": "fj", "Code": "679"}, 72 | {"Name": "Finland", "ISO": "fi", "Code": "358"}, 73 | {"Name": "France", "ISO": "fr", "Code": "33"}, 74 | {"Name": "French Guiana", "ISO": "gf", "Code": "594"}, 75 | {"Name": "French Polynesia", "ISO": "pf", "Code": "689"}, 76 | {"Name": "Gabon", "ISO": "ga", "Code": "241"}, 77 | {"Name": "Gambia", "ISO": "gm", "Code": "220"}, 78 | {"Name": "Georgia", "ISO": "ge", "Code": "995"}, 79 | {"Name": "Germany", "ISO": "de", "Code": "49"}, 80 | {"Name": "Ghana", "ISO": "gh", "Code": "233"}, 81 | {"Name": "Gibraltar", "ISO": "gi", "Code": "350"}, 82 | {"Name": "Greece", "ISO": "gr", "Code": "30"}, 83 | {"Name": "Greenland", "ISO": "gl", "Code": "299"}, 84 | {"Name": "Grenada", "ISO": "gd", "Code": "1473"}, 85 | {"Name": "Guadeloupe", "ISO": "gp", "Code": "590"}, 86 | {"Name": "Guam", "ISO": "gu", "Code": "1671"}, 87 | {"Name": "Guatemala", "ISO": "gt", "Code": "502"}, 88 | {"Name": "Guinea", "ISO": "gn", "Code": "224"}, 89 | {"Name": "Guinea-Bissau", "ISO": "gw", "Code": "245"}, 90 | {"Name": "Guyana", "ISO": "gy", "Code": "592"}, 91 | {"Name": "Haiti", "ISO": "ht", "Code": "509"}, 92 | {"Name": "Honduras", "ISO": "hn", "Code": "504"}, 93 | {"Name": "Hong Kong", "ISO": "hk", "Code": "852"}, 94 | {"Name": "Hungary", "ISO": "hu", "Code": "36"}, 95 | {"Name": "Iceland", "ISO": "is", "Code": "354"}, 96 | {"Name": "India", "ISO": "in", "Code": "91"}, 97 | {"Name": "Indonesia", "ISO": "id", "Code": "62"}, 98 | {"Name": "Iran", "ISO": "ir", "Code": "98"}, 99 | {"Name": "Iraq", "ISO": "iq", "Code": "964"}, 100 | {"Name": "Ireland", "ISO": "ie", "Code": "353"}, 101 | {"Name": "Israel", "ISO": "il", "Code": "972"}, 102 | {"Name": "Italy", "ISO": "it", "Code": "39"}, 103 | {"Name": "Jamaica", "ISO": "jm", "Code": "1876"}, 104 | {"Name": "Japan", "ISO": "jp", "Code": "81"}, 105 | {"Name": "Jordan", "ISO": "jo", "Code": "962"}, 106 | {"Name": "Kazakhstan", "ISO": "kz", "Code": "7"}, 107 | {"Name": "Kenya", "ISO": "ke", "Code": "254"}, 108 | {"Name": "Kiribati", "ISO": "ki", "Code": "686"}, 109 | {"Name": "Kuwait", "ISO": "kw", "Code": "965"}, 110 | {"Name": "Kyrgyzstan", "ISO": "kg", "Code": "996"}, 111 | {"Name": "Laos", "ISO": "la", "Code": "856"}, 112 | {"Name": "Latvia", "ISO": "lv", "Code": "371"}, 113 | {"Name": "Lebanon", "ISO": "lb", "Code": "961"}, 114 | {"Name": "Lesotho", "ISO": "ls", "Code": "266"}, 115 | {"Name": "Liberia", "ISO": "lr", "Code": "231"}, 116 | {"Name": "Libya", "ISO": "ly", "Code": "218"}, 117 | {"Name": "Liechtenstein", "ISO": "li", "Code": "423"}, 118 | {"Name": "Lithuania", "ISO": "lt", "Code": "370"}, 119 | {"Name": "Luxembourg", "ISO": "lu", "Code": "352"}, 120 | {"Name": "Macau", "ISO": "mo", "Code": "853"}, 121 | {"Name": "Macedonia", "ISO": "mk", "Code": "389"}, 122 | {"Name": "Madagascar", "ISO": "mg", "Code": "261"}, 123 | {"Name": "Malawi", "ISO": "mw", "Code": "265"}, 124 | {"Name": "Malaysia", "ISO": "my", "Code": "60"}, 125 | {"Name": "Maldives", "ISO": "mv", "Code": "960"}, 126 | {"Name": "Mali", "ISO": "ml", "Code": "223"}, 127 | {"Name": "Malta", "ISO": "mt", "Code": "356"}, 128 | {"Name": "Marshall Islands", "ISO": "mh", "Code": "692"}, 129 | {"Name": "Martinique", "ISO": "mq", "Code": "596"}, 130 | {"Name": "Mauritania", "ISO": "mr", "Code": "222"}, 131 | {"Name": "Mauritius", "ISO": "mu", "Code": "230"}, 132 | {"Name": "Mexico", "ISO": "mx", "Code": "52"}, 133 | {"Name": "Micronesia", "ISO": "fm", "Code": "691"}, 134 | {"Name": "Moldova", "ISO": "md", "Code": "373"}, 135 | {"Name": "Monaco", "ISO": "mc", "Code": "377"}, 136 | {"Name": "Mongolia", "ISO": "mn", "Code": "976"}, 137 | {"Name": "Montenegro", "ISO": "me", "Code": "382"}, 138 | {"Name": "Montserrat", "ISO": "ms", "Code": "1664"}, 139 | {"Name": "Morocco", "ISO": "ma", "Code": "212"}, 140 | {"Name": "Mozambique", "ISO": "mz", "Code": "258"}, 141 | {"Name": "Myanmar", "ISO": "mm", "Code": "95"}, 142 | {"Name": "Namibia", "ISO": "na", "Code": "264"}, 143 | {"Name": "Nauru", "ISO": "nr", "Code": "674"}, 144 | {"Name": "Nepal", "ISO": "np", "Code": "977"}, 145 | {"Name": "Netherlands", "ISO": "nl", "Code": "31"}, 146 | {"Name": "New Caledonia", "ISO": "nc", "Code": "687"}, 147 | {"Name": "New Zealand", "ISO": "nz", "Code": "64"}, 148 | {"Name": "Nicaragua", "ISO": "ni", "Code": "505"}, 149 | {"Name": "Niger", "ISO": "ne", "Code": "227"}, 150 | {"Name": "Nigeria", "ISO": "ng", "Code": "234"}, 151 | {"Name": "Niue", "ISO": "nu", "Code": "683"}, 152 | {"Name": "Norfolk Island", "ISO": "nf", "Code": "672"}, 153 | {"Name": "North Korea", "ISO": "kp", "Code": "850"}, 154 | {"Name": "Northern Mariana Islands", "ISO": "mp", "Code": "1670"}, 155 | {"Name": "Norway", "ISO": "no", "Code": "47"}, 156 | {"Name": "Oman", "ISO": "om", "Code": "968"}, 157 | {"Name": "Pakistan", "ISO": "pk", "Code": "92"}, 158 | {"Name": "Palau", "ISO": "pw", "Code": "680"}, 159 | {"Name": "Palestine", "ISO": "ps", "Code": "970"}, 160 | {"Name": "Panama", "ISO": "pa", "Code": "507"}, 161 | {"Name": "Papua New Guinea", "ISO": "pg", "Code": "675"}, 162 | {"Name": "Paraguay", "ISO": "py", "Code": "595"}, 163 | {"Name": "Peru", "ISO": "pe", "Code": "51"}, 164 | {"Name": "Philippines", "ISO": "ph", "Code": "63"}, 165 | {"Name": "Poland", "ISO": "pl", "Code": "48"}, 166 | {"Name": "Portugal", "ISO": "pt", "Code": "351"}, 167 | {"Name": "Puerto Rico", "ISO": "pr", "Code": "1"}, 168 | {"Name": "Qatar", "ISO": "qa", "Code": "974"}, 169 | {"Name": "Réunion", "ISO": "re", "Code": "262"}, 170 | {"Name": "Romania", "ISO": "ro", "Code": "40"}, 171 | {"Name": "Russia", "ISO": "ru", "Code": "7"}, 172 | {"Name": "Rwanda", "ISO": "rw", "Code": "250"}, 173 | {"Name": "Saint Barthélemy", "ISO": "bl", "Code": "590"}, 174 | {"Name": "Saint Helena", "ISO": "sh", "Code": "290"}, 175 | {"Name": "Saint Kitts and Nevis", "ISO": "kn", "Code": "1869"}, 176 | {"Name": "Saint Lucia", "ISO": "lc", "Code": "1758"}, 177 | {"Name": "Saint Martin", "ISO": "mf", "Code": "590"}, 178 | {"Name": "Saint Pierre and Miquelon", "ISO": "pm", "Code": "508"}, 179 | {"Name": "Saint Vincent and the Grenadines", "ISO": "vc", "Code": "1784"}, 180 | {"Name": "Samoa", "ISO": "ws", "Code": "685"}, 181 | {"Name": "San Marino", "ISO": "sm", "Code": "378"}, 182 | {"Name": "São Tomé and Príncipe", "ISO": "st", "Code": "239"}, 183 | {"Name": "Saudi Arabia", "ISO": "sa", "Code": "966"}, 184 | {"Name": "Senegal", "ISO": "sn", "Code": "221"}, 185 | {"Name": "Serbia", "ISO": "rs", "Code": "381"}, 186 | {"Name": "Seychelles", "ISO": "sc", "Code": "248"}, 187 | {"Name": "Sierra Leone", "ISO": "sl", "Code": "232"}, 188 | {"Name": "Singapore", "ISO": "sg", "Code": "65"}, 189 | {"Name": "Sint Maarten", "ISO": "sx", "Code": "1721"}, 190 | {"Name": "Slovakia", "ISO": "sk", "Code": "421"}, 191 | {"Name": "Slovenia", "ISO": "si", "Code": "386"}, 192 | {"Name": "Solomon Islands", "ISO": "sb", "Code": "677"}, 193 | {"Name": "Somalia", "ISO": "so", "Code": "252"}, 194 | {"Name": "South Africa", "ISO": "za", "Code": "27"}, 195 | {"Name": "South Korea", "ISO": "kr", "Code": "82"}, 196 | {"Name": "South Sudan", "ISO": "ss", "Code": "211"}, 197 | {"Name": "Spain", "ISO": "es", "Code": "34"}, 198 | {"Name": "Sri Lanka", "ISO": "lk", "Code": "94"}, 199 | {"Name": "Sudan", "ISO": "sd", "Code": "249"}, 200 | {"Name": "Suriname", "ISO": "sr", "Code": "597"}, 201 | {"Name": "Swaziland", "ISO": "sz", "Code": "268"}, 202 | {"Name": "Sweden", "ISO": "se", "Code": "46"}, 203 | {"Name": "Switzerland", "ISO": "ch", "Code": "41"}, 204 | {"Name": "Syria", "ISO": "sy", "Code": "963"}, 205 | {"Name": "Taiwan", "ISO": "tw", "Code": "886"}, 206 | {"Name": "Tajikistan", "ISO": "tj", "Code": "992"}, 207 | {"Name": "Tanzania", "ISO": "tz", "Code": "255"}, 208 | {"Name": "Thailand", "ISO": "th", "Code": "66"}, 209 | {"Name": "Timor-Leste", "ISO": "tl", "Code": "670"}, 210 | {"Name": "Togo", "ISO": "tg", "Code": "228"}, 211 | {"Name": "Tokelau", "ISO": "tk", "Code": "690"}, 212 | {"Name": "Tonga", "ISO": "to", "Code": "676"}, 213 | {"Name": "Trinidad and Tobago", "ISO": "tt", "Code": "1868"}, 214 | {"Name": "Tunisia", "ISO": "tn", "Code": "216"}, 215 | {"Name": "Turkey", "ISO": "tr", "Code": "90"}, 216 | {"Name": "Turkmenistan", "ISO": "tm", "Code": "993"}, 217 | {"Name": "Turks and Caicos Islands", "ISO": "tc", "Code": "1649"}, 218 | {"Name": "Tuvalu", "ISO": "tv", "Code": "688"}, 219 | {"Name": "U.S. Virgin Islands", "ISO": "vi", "Code": "1340"}, 220 | {"Name": "Uganda", "ISO": "ug", "Code": "256"}, 221 | {"Name": "Ukraine", "ISO": "ua", "Code": "380"}, 222 | {"Name": "United Arab Emirates", "ISO": "ae", "Code": "971"}, 223 | {"Name": "United Kingdom", "ISO": "gb", "Code": "44"}, 224 | {"Name": "United States", "ISO": "us", "Code": "1"}, 225 | {"Name": "Uruguay", "ISO": "uy", "Code": "598"}, 226 | {"Name": "Uzbekistan", "ISO": "uz", "Code": "998"}, 227 | {"Name": "Vanuatu", "ISO": "vu", "Code": "678"}, 228 | {"Name": "Vatican City", "ISO": "va", "Code": "39"}, 229 | {"Name": "Venezuela", "ISO": "ve", "Code": "58"}, 230 | {"Name": "Vietnam", "ISO": "vn", "Code": "84"}, 231 | {"Name": "Wallis and Futuna", "ISO": "wf", "Code": "681"}, 232 | {"Name": "Yemen", "ISO": "ye", "Code": "967"}, 233 | {"Name": "Zambia", "ISO": "zm", "Code": "260"}, 234 | {"Name": "Zimbabwe", "ISO": "zw", "Code": "263"} 235 | ]; 236 | --------------------------------------------------------------------------------