パッケージ、リポジトリ、アプリカテゴリを検索

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 パッケージです。マップ要素に対してスムーズな遷移とダイナミックな視覚効果を可能にし、応答性のあるインタラクションによりユーザー体験を向上させます。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 件

ソースリポジトリ

このパッケージを使用しているプロジェクト