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

flutter_map_animations 표지
패키지 상세v0.11.0

flutter_map_animations

flutter_map 패키지의 마커 및 컨트롤에 대한 애니메이션 유틸리티입니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
4.7만
좋아요
120
Pub 점수
160

패키지 설치

flutter pub add flutter_map_animations

패키지 개요

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

flutter_map 패키지의 마커 및 컨트롤에 대한 애니메이션 유틸리티를 제공하는 플러터 패키지입니다. 지도 요소에 대해 부드러운 전환과 동적 시각 효과를 가능하게 하여 반응형 상호작용을 통해 사용자 경험을 향상시킵니다. flutter_map와 원활하게 통합되도록 설계되었으며, 위치 변경, 스케일 조정, 가시성 전환과 같은 일반적인 애니메이션 패턴을 지원합니다. 여러 플랫폼에서 애니메이션 지도 마커 또는 인터랙티브 제어 동작이 필요한 애플리케이션에 적합합니다.

사용 사례

  • 애니메이션 지도 마커
  • 인터랙티브 지도 컨트롤
  • 실시간 위치 추적
  • 지도 기반 대시보드
  • 사용자 인터페이스 개선
  • 동적 지도 오버레이

주요 기능

  • 부드러운 마커 애니메이션
  • 컨트롤 요소 전환
  • flutter_map와의 원활한 통합
  • 크로스 플랫폼 지원
  • 사용자 정의 애니메이션 곡선
  • 경량 및 모듈식 디자인

적합한 대상

  • 동적 데이터를 가진 지도
  • 인터랙티브 지오로케이션 앱
  • 지도上的 데이터 시각화
  • UI 중심 매핑 인터페이스
  • flutter_map를 사용하는 개발자

고려 사항

  • flutter_map 종속성 필요
  • 마커 및 제어 애니메이션에 한정
  • 많은 애니메이션 요소로 인한 성능 영향
  • 복잡한 애니메이션에 맞게 조정이 필요할 수 있습니다
  • 지도 외 UI 컴포넌트에 적합하지 않습니다

원본 README

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

Flutter Map Animations

Pub Version (including pre-releases)

Animation utility for the flutter_map package.

Try the example app

Table of Contents

Documentation

AnimatedMapController

Just create an AnimatedMapController and you're good to go:

class _MyWidgetState extends State<MyWidget> with TickerProviderStateMixin {
    late final _animatedMapController = AnimatedMapController(vsync: this);

    // ...
}

You can specify globally the animation's duration, curve and if previous animations should be stopped with cancelPreviousAnimations:

AnimatedMapController(
    vsync: this,
    duration: const Duration(milliseconds: 500),
    curve: Curves.easeInOut,
    cancelPreviousAnimations: true, // Default to false
);

And add it to your FlutterMap widget:

FlutterMap(
    mapController: _animatedMapController.mapController,
    // ...
)
Animated Movement
Rotation Zoom Center on point

Check the AnimatedMapController API for more!

AnimatedMarkerLayer & AnimatedMarker

AnimatedMarker
FlutterMap(
    mapController: _animatedMapController.mapController,
    children: [
        TileLayer(
            urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
            userAgentPackageName: 'com.example.app',
        ),
        AnimatedMarkerLayer(
            markers: [
                AnimatedMarker(
                    point: LatLng(51.509364, -0.128928),
                    builder: (_, animation) {
                        final size = 50.0 * animation.value;
                        return Icon(
                            Icons.location_on,
                            size: size,
                        );
                    },
                ),
            ],
        ),
    ],
)

Migration Guide

v0.5.0

With flutter_map v6 some parameters have been removed or renamed:

  • AnimatedMarker.rotateOrigin, AnimatedMarker.anchorPos have been removed
  • AnimatedMarker.rotateAlignment has been renamed to AnimatedMarker.alignment
  • AnimatedMarkerLayer.rotateOrigin, AnimatedMarkerLayer.anchorPos have been removed
  • AnimatedMarkerLayer.rotateAlignment has been renamed to AnimatedMarkerLayer.alignment

v0.4.0

  • With flutter_map v5 it's not possible anymore to extend MapControllerImpl which was used to use the AnimatedMapController directly as a MapController in the FlutterMap widget. Now an instance of MapController is created internally or can be passed as a parameter to the AnimatedMapController constructor. You can access it with the mapController getter:
late final _animatedMapController = AnimatedMapController(vsync: this);

@override
Widget build(BuildContext context) {
    return FlutterMap(
        mapController: _animatedMapController.mapController,
        // ...
    );
}

Contributors

TesteurManiak
Guillaume Roux
JaffaKetchup
Luka S
rorystephenson
Rory Stephenson
ReinisSprogis
Reinis Sprogis

카테고리

의존성

의존성 목록 2 개

소스 저장소

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