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

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의 Sliver 위젯 내에 막대 차트를 통합할 수 있게 해주며, 개발자가 리스트나 사용자 정의 스크롤 뷰에서 스크롤 가능한 헤더로 막대 차트를 표시할 수 있도록 합니다. 스크롤 영역 상단에 시각적 데이터 표현이 필요한 복잡한 스크롤 레이아웃에서 사용하도록 설계되었습니다. 모든 주요 플랫폼을 지원하며, 데이터 시각화와 반응형 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.

카테고리

소스 저장소

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

아직 데이터가 없습니다.