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

sliver_bar_chart のカバー
パッケージ詳細v0.0.1

sliver_bar_chart

Flutterのスリバーで棒グラフをサポートするパッケージです。このパッケージを使用すると、スリバーに棒グラフを追加でき、スリバーのスクロール時に棒グラフをヘッダーとして設定できます。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
21
いいね数
27
Pub ポイント
150

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

flutter pub add sliver_bar_chart

パッケージ概要

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

sliver_bar_chart パッケージは、Flutter のスリバー ウィジェット内に棒グラフを統合する機能を提供し、開発者がリストやカスタム スクロールビューでスクロール可能なヘッダーとして棒グラフを表示できるようにします。スクロール領域の上部に視覚的なデータ表現が必要な複雑なスクロールレイアウト向けに設計されています。すべての主要プラットフォームをサポートしており、データ視覚化と応答性のあるUIをシームレスに組み合わせる方法を提供します。スクロール動作に応じて調整される動的かつインタラクティブなチャートを提供することで、ユーザー体験を向上させます。

用途

  • チャートヘッダーを使用したスクロール可能なダッシュボードの作成
  • リストヘッダーに時系列データを表示する
  • ビジュアル要約付きの分析インターフェースの構築
  • ネストされたスクロールビューにチャートを統合する
  • データが多く含まれるアプリ画面を視覚フィードバックで強化する

主な機能

  • バーチャートをスリバーのヘッダーとして
  • 複数プラットフォームにわたるレスポンシブデザイン
  • CustomScrollView とのスムーズな統合
  • 動的データ更新のサポート
  • チャートレンダリング用の組み込みアニメーション

適している対象

  • スクロール可能なUIにおけるデータのビジュアライゼーション
  • ダッシュボードと分析アプリ
  • 大規模なデータセットを備えたモバイルおよびウェブアプリケーション
  • Sliverベースのレイアウトを使用する開発者
  • インタラクティブなチャートヘッダーを必要とするアプリ

注意事項

  • Sliver ウィジェットの理解が必要です
  • 非常に大きなデータセットではパフォーマンスに影響する可能性があります
  • 基本的なチャートスタイル以外のカスタマイズが限られている
  • 下位のチャートレンダリングライブラリに依存しています
  • 静的またはやや動的なデータに最適

元の README

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

sliver_bar_chart

Flutter Website Dart Website MIT License

It is Sliver component. Bar chart work with sliver animation on expand and collapse. It is an independent component that allows you to set data for the chart with the configuration of Sliver.

Key Features

  • easy way to add bar chart in a Sliver.
  • used to set a bar chart as a Sliver Header.

Preview

sliver_bar_chart

Basic Usage

Import it to your project file

import 'package:sliver_bar_chart/sliver_bar_chart.dart';

And add it in its most basic form like it:

SliverBarChart(
  barWidget: BarChartWidget(
    minHeight: 100.0,
    maxHeight: 1000.0,
    barValues: [
      BarChartData(
        x: '2022',
        y: 500.0,
        barColor: Colors.blue,
      ),
    ],
    isScrolling: true,
  ),
);
Required parameters of SliverBarChart

Parameter Description
BarChartWidget barWidget Used to paint bar chart using custom painter
Optional parameters of SliverBarChart

Parameter Default Description
bool restrain false Whether to stick the header to the start of the viewport once it has reached its minimum size
bool scrolling - Whether sliver is scrolling or not
List heightArray [50.0, 78.0, 90.0, 67.0, 36.0] The array of height for generating the bars of the Bar Chart
double maxWidth 75.0 The maximum width dimensions of the sliver
double minHeight 30.0 The minimum height dimensions of the sliver
double maxHeight 175.0 The maximum height dimensions of the sliver
bool fluctuating false Whether the header should immediately grow again if the user reverses scroll direction
Required parameters of BarChartWidget

Parameter Description
double minHeight The minimum height dimensions of the BarChartWidget
double maxHeight The maximum height dimensions of the BarChartWidget
List barValues hold the list of bar chart data
bool isScrolling Whether sliver is scrolling or not
Optional parameters of BarChartWidget

Parameter Default Description
int yAxisIntervalCount 5 Used to set interval point on Y axis
double xAxisTextRotationAngle 0.0 Used to set X axis text on a rotation angle in case of larger text
Required parameters of BarChartData Model Class

Parameter Description
String x a text that visible on Bar Chart X axis
double y a value that visible on Bar Chart Y axis
Optional parameters of BarChartData Model Class

Parameter Default Description
Color barColor Colors.grey used to set color of the bar
Guideline for contributors

  • Contribution towards our repository is always welcome, we request contributors to create a pull request for development.
Guideline to report an issue/feature request

It would be great for us if the reporter can share the below things to understand the root cause of the issue.

  • Library version
  • Code snippet
  • Logs if applicable
  • Device specification like (Manufacturer, OS version, etc)
  • Screenshot/video with steps to reproduce the issue
  • Library used

LICENSE!

sliver_bar_chart is MIT-licensed.

Let us know!

We’d be really happy if you send us links to your projects where you use our component. Just send an email to sales@mindinventory.com And do let us know if you have any questions or suggestion regarding our work.

カテゴリー

ソースリポジトリ

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

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