FLUTTER ECOSYSTEM

lucaantonelli/flutter_store_locator

API 호출을 기반으로 하버세인 또는 유사한 알고리즘을 사용하여 맵 마커를 동적으로 표시하는 iOS 및 안드로이드용 플러터 플러그인입니다.

flutter_store_locator 프로젝트 이미지
Stars
4
Forks
0
최근 푸시(UTC)
2026. 8. 7.
프로젝트 상태
활성
Luca Antonelli GitHub avatar
GITHUB User

Luca Antonelli ↗

Full-stack developer. Working with Flutter, Supabase, React.js, Yii2.

Recanati, Italy
언어DartHTMLSwiftKotlinObjective-C

이 저장소가 배포한 패키지

사용 중인 의존성

의존성 목록 4 개

원본 README

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

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