Buscar pacotes, repositórios e categorias de apps

Capa de sliver_bar_chart
Detalhes do pacotev0.0.1

sliver_bar_chart

Um pacote que suporta gráfico de barras em um Sliver do Flutter. Este pacote permite adicionar um gráfico de barras ao Sliver e definir um gráfico de barras como cabeçalho durante o deslocamento dos Slivers.

AndroidiOSWebmacOSWindowsLinux
Downloads em 30 dias
21
Curtidas
27
Pontos Pub
150

Instalar pacote

flutter pub add sliver_bar_chart

Visão geral do pacote

Orientação gerada a partir de informações públicas. Apenas para referência.

O pacote sliver_bar_chart permite a integração de gráficos de barras nos widgets Sliver do Flutter, permitindo que desenvolvedores exibam gráficos de barras como cabeçalhos roláveis em listas ou visualizações personalizadas de rolagem. Foi projetado para uso em layouts complexos de rolagem onde é necessário representar dados visualmente na parte superior de uma área rolável. O pacote suporta todas as principais plataformas e oferece uma maneira fluida de combinar visualização de dados com interfaces responsivas. Ele melhora a experiência do usuário ao fornecer gráficos dinâmicos e interativos que se adaptam ao comportamento de rolagem.

Casos de uso

  • Criando painéis navegáveis com cabeçalhos de gráfico
  • Exibindo dados de séries temporais em um cabeçalho de lista
  • Criando interfaces de análise com resumos visuais
  • Integrando gráficos em visualizações de rolagem aninhadas
  • Melhorando telas de aplicativos com muitos dados com feedback visual

Principais recursos

  • Gráficos de barras como cabeçalhos Sliver
  • Design responsivo em várias plataformas
  • Integração suave com CustomScrollView
  • Suporte para atualizações dinâmicas de dados
  • Animação embutida para renderização de gráfico

Indicado para

  • Visualização de dados em interfaces roláveis
  • Aplicativos de painel e análise
  • Aplicações móveis e web com grandes conjuntos de dados
  • Desenvolvedores usando layouts baseados em Sliver
  • Aplicativos que exigem cabeçalhos de gráfico interativos

Considerações

  • Requer conhecimento sobre widgets Sliver
  • Pode afetar o desempenho com conjuntos de dados muito grandes
  • Personalização limitada além do estilo básico do gráfico
  • Depende da biblioteca subjacente de renderização de gráficos
  • Mais adequado para dados estáticos ou moderadamente dinâmicos

README original

Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.

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.

Categorias

Repositório-fonte

Projetos que usam este pacote

Ainda não há dados.