Site icon Flutter Packages | Pub dev Packages – Flutter Mobile App World

A library to draw fantastic bar charts race in Flutter

bar_chart_race

The first library to draw fantastic bar charts race in Flutter

Usage

Let’s get started

add the dependencies to your app:

dependencies:
  bar_chart_race: ^0.0.4

then import it:
import 'package:bar_chart_race/bar_chart_race.dart';

then you can simply use:

BarChartRace(
            data: data,
            initialPlayState: true,
          )

this will create a bar chart with random colors and animate it.
the data and initialPlayState are required and here the exmplanation for most of the properties

Contribution

pull requests are welcome!

Last but not least

the package is still in its first version so it may contains some issues.

Download bar chart race app source code on GitHub

https://github.com/younes38/bar_chart_race
Exit mobile version
Skip to toolbar