패키지, 저장소 및 앱 카테고리 검색

store_locator 표지
패키지 상세v1.1.0

store_locator

Flutter용 스토어 로케이터. 현재 지도 위치를 기반으로 지도에 매장(또는 POI)을 표시할 수 있습니다.

AndroidiOSWeb
30일 다운로드
83
좋아요
3
Pub 점수
160

패키지 설치

flutter pub add store_locator

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Flutter용 store_locator 패키지는 개발자가 지도에 매장 또는 관심 지점을 표시하고 사용자의 현재 위치에 따라 동적으로 업데이트할 수 있도록 해줍니다. Android, iOS, 웹 플랫폼의 Flutter 앱과 원활하게 통합되어 근처 위치를 직관적으로 시각화할 수 있는 방법을 제공합니다. 간단함을 우선시하여 맵 서비스를 활용해 마커를 렌더링하며, 사용자 정의 스타일 및 필터링을 지원합니다. 소매, 서비스, 물류 애플리케이션에서 위치 기반 탐색이 필요한 경우 이상적입니다.

사용 사례

  • 가까운 매장 찾기
  • 지도에 POI 표시
  • 위치 기반 서비스 탐색
  • 리테일 앱 탐색
  • 지도 기반 고객 참여

주요 기능

  • 실시간 위치 기반 매장 표시
  • 사용자 지정 가능한 지도 마커
  • Android, iOS 및 웹을 지원합니다
  • Flutter와의 간편한 통합
  • 필터 가능한 스토어 목록

적합한 대상

  • 소매 응용 프로그램
  • 서비스 제공업체 디렉토리
  • 물류 및 배송 추적
  • 여행 및 관광 앱
  • 현지 비즈니스 탐색 도구

고려 사항

  • 지도 API 키 구성이 필요합니다
  • 지원되는 플랫폼에 제한됨
  • 외부 지도 서비스에 의존합니다
  • 위치 액세스를 위한 권한 처리가 필요할 수 있습니다
  • 성능은 데이터 크기와 네트워크 속도에 따라 달라집니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Store Locator for Flutter

pub package build

A Flutter package for showing map markers dynamically based on API calls that use Haversine distance or a similar location query.

Android iOS Web
Support SDK 24+ 14.0+ Any*

The example app running in Android

Installation

First, add store_locator as a dependency in your pubspec.yaml file.

You also need to implement google_maps_flutter properly, check their guide

Import

You can import the package with:

import 'package:store_locator/store_locator.dart';

Example

StoreLocator<Store>(
  mapConfiguration: const MapConfiguration(
    initialCameraPosition: CameraPosition(
      target: LatLng(45.464211, 9.191383),
      zoom: 10,
    ),
  ),
  positionCallback: (position) async {
    Response response = await Dio().get('stores', queryParameters: {
      "latitude": position.latitude,
      "longitude": position.longitude,
    });
    if (response.statusCode == 200 || response.statusCode == 201) {
      return storesFromJson(response.data);
    }
    return [];
  },
  markerBuilder: (store) {
    return Marker(
      markerId: MarkerId(store.id.toString()),
      position: LatLng(store.latitude, store.longitude),
      infoWindow: InfoWindow(
        title: store.name,
        snippet: store.city,
      ),
    );
  },
)

See the example directory for a complete sample app.

Support

If this plugin was useful to you, helped you to deliver your app, saved you a lot of time, or you just want to support the project, I would be very grateful if you buy me a cup of coffee.

Buy Me A Coffee

License

MIT

카테고리

의존성

의존성 목록 1 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.