Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

city picker from map

a flutter package for select a city from svg map.

selecting_city

supported countries (+150) are here.

screenshots

responsive

ss3

ss4

getting started

in the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  city_picker_from_map: any

in your library file add the following import:

import 'package:city_picker_from_map/city_picker_from_map.dart';

usage

citypickermap(
	width: double.infinity,
	height: double.infinity,
	map: maps.turkey,
	onchanged: (city) {
	  setstate(() {
		selectedcity = city;
	  });
	},
	actastoggle: true,
	dotcolor: colors.white,
	selectedcolor: colors.lightblueaccent,
	strokecolor: colors.white24,
)

props

props types description
key key?
map string name of the map you want to show. use as maps.<map_name> all maps are in the maps.dart
width double? map width. default value is double.infinity
height double? map height. default value is double.infinity
dotcolor color? color of the dot in the center of the city
strokecolor color? color of the city borders
selectedcolor color? color of the selected city
actastoggle boolean? city selecting act as like toggle button
onchanged function(city? city) returns new city value when it changed

author


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD


Download this source code for
5 USD

Comments are closed.