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

flutter_vertical_heatmap のカバー
パッケージ詳細v1.0.3

flutter_vertical_heatmap

Flutter用の垂直ヒートマップチャートパッケージ。美しく作られたUIと究極の柔軟性を提供します!

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
34
いいね数
32
Pub ポイント
160

パッケージをインストール

flutter pub add flutter_vertical_heatmap

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

スリムでカスタマイズ可能なUIを備えた垂直ヒートマップチャートを作成するためのFlutterパッケージです。時系列データやカテゴリカルデータに対して柔軟なデータビジュアライゼーションを提供し、複数のプラットフォームでスムーズなレンダリングをサポートします。密集したデータパターンを垂直形式で美しく表示したい開発者向けに設計されており、レスポンシブレイアウトと直感的な設定オプションを提供します。ダッシュボード、分析、モニタリングアプリケーションに最適です。

用途

  • 時系列データの表示
  • 時間単位でのユーザー活動の可視化
  • システムパフォーマンスの監視
  • 日々のトレンドを分析する
  • インタラクティブなダッシュボードの作成
  • イベント頻度の追跡

主な機能

  • ヒートマップの垂直方向
  • カスタマイズ性の高いカラースキーム
  • 応答性とスケーラビリティのあるデザイン
  • 複数プラットフォームのサポート
  • スムーズなアニメーションと遷移
  • 既存のFlutterアプリとの簡単な統合

適している対象

  • データアナリスト
  • ダッシュボード開発者
  • UI/UXデザイナー
  • アプリケーション作成者の監視
  • 教育アプリ開発者

注意事項

  • 正確なデータフォーマットが必要です
  • 非常に大きなデータセットではパフォーマンスに影響する可能性があります
  • 制限された組み込みのインタラクティビティ
  • すべてのターゲットプラットフォームでテストが必要です
  • カスタムスタイルには追加のコードが必要になる場合があります

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Flutter Vertical Heatmap

🐙 A vertical heatmap chart package for Flutter, offering beautifully crafted UI with ultimate flexibility!

heatmap

Getting started

Depend on it.
flutter pub add flutter_vertical_heatmap

or

Add below line to your personal package's pubspec.yaml.

dependencies:
  flutter_vertical_heatmap: ^1.0.3

And run flutter pub get to install.

Import it.
import 'package:flutter_vertical_heatmap/flutter_vertical_heatmap.dart';

Usage

class HomePage extends StatefulWidget {
  const HomePage({super.key});

  @override
  State<HomePage> createState() => _HomePageState();
}

class _HomePageState extends State<HomePage> {
  late Map<DateTime, int> datasets = {};

  @override
  void initState() {
    super.initState();
    var now = DateTime.now();
    datasets[DateTime(now.year, now.month, now.day)] = 1;
    datasets[DateTime(now.year, now.month, now.day - 1)] = 2;
    datasets[DateTime(now.year, now.month, now.day - 2)] = 3;
    datasets[DateTime(now.year, now.month, now.day - 3)] = 4;
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme.of(context).colorScheme.inversePrimary,
        title: const Text('Flutter Vertical Heatmap'),
      ),
      body: SingleChildScrollView(
        child: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              const SizedBox(height: 80),
              HeatMap(
                startDate: HeatMapUtils.oneYearBefore(DateTime.now()),
                endDate: DateTime.now(),
                monthLabel: HeatMapDefault.monthLabel,
                weekLabel: HeatMapDefault.weekLabel,
                datasets: datasets,
                size: 32,
                // If you do not want to use a color tip, leave colorTipSize blank or pass null.
                colorTipSize: 20, 
                margin: const EdgeInsets.all(3),
                colorsets: {
                  1: Colors.green.shade100,
                  3: Colors.green.shade300,
                  5: Colors.green.shade500,
                  7: Colors.green.shade700,
                },
                colorTipLabel: const ["0~3", "3~5", "5~7", "7+"],
                onClick: (value) {
                  setState(() {
                    datasets[value] =
                        datasets[value] != null ? datasets[value]! + 1 : 1;
                  });
                  ScaffoldMessenger.of(context).clearSnackBars();
                  ScaffoldMessenger.of(context)
                      .showSnackBar(SnackBar(content: Text(value.toString())));
                },
              ),
              const SizedBox(height: 80),
            ],
          ),
        ),
      ),
    );
  }
}

License

MIT License

Copyright (c) 2024 Lee Chang Woo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

カテゴリー

ソースリポジトリ

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

データはまだありません。