FLUTTER ECOSYSTEM

ahm3tcelik/city_picker_from_map

SVG 지도에서 도시를 선택하기 위한 플러터 패키지입니다.

도시 선택기(지도에서) 프로젝트 이미지
Stars
53
Forks
24
최근 푸시(UTC)
2021. 3. 23.
프로젝트 상태
활성
Ahmet ÇELİK GitHub avatar
GITHUB User

Ahmet ÇELİK ↗

Full Stack Developer

Roofstacks - RoofMoneyTurkey
언어DartCMakeSwiftC++Kotlin

기술 주제

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 3 개
  • flutter{"sdk":"flutter"}
  • svg_path_parser^1.0.0
  • flutter_test개발 의존성{"sdk":"flutter"}

원본 README

아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.

README 펼치기 / 접기

City Picker From Map

A flutter package for select a city from svg map.

https://github.com/ahm3tcelik/city_picker_from_map/blob/master/showcase/selecting_city.gif

Supported countries (+150) are here.

Screenshots

https://github.com/ahm3tcelik/city_picker_from_map/blob/master/showcase/responsive.gif

https://github.com/ahm3tcelik/city_picker_from_map/blob/master/showcase/ss3.jpg https://github.com/ahm3tcelik/city_picker_from_map/blob/master/showcase/ss4.png

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