charts_flutter 0.0.1+1

  • Example
  • Installing
  • Versions
  • 49

Flutter Charting library

Material Design data visualization library written natively in Dart.

Supported charts

See the online gallery.

Using the library

The /example/ folder inside charts_flutter in the GitHub repo contains a full Flutter app with many demo examples.


// Copyright 2018 the Charts project authors. Please see the AUTHORS file
// for details.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// See the License for the specific language governing permissions and
// limitations under the License.

import 'package:flutter/material.dart';
import 'app_config.dart';
import 'home.dart';

/// The main gallery app widget.
class GalleryApp extends StatefulWidget {
  GalleryApp({Key key}) : super(key: key);

  GalleryAppState createState() => new GalleryAppState();

/// The main gallery app state.
/// Controls performance overlay, and instantiates a [Home] widget.
class GalleryAppState extends State<GalleryApp> {
  // Initialize app settings from the default configuration.
  bool _showPerformanceOverlay = defaultConfig.showPerformanceOverlay;

  Widget build(BuildContext context) {
    return new MaterialApp(
        title: defaultConfig.appName,
        theme: defaultConfig.theme,
        showPerformanceOverlay: _showPerformanceOverlay,
        home: new Home(
          showPerformanceOverlay: _showPerformanceOverlay,
          onShowPerformanceOverlayChanged: (bool value) {
            setState(() {
              _showPerformanceOverlay = value;

void main() {
  runApp(new GalleryApp());

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  charts_flutter: ^0.0.1+1

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:charts_flutter/flutter.dart';
Version Uploaded Documentation Archive
0.4.0 Aug 6, 2018 Go to the documentation of charts_flutter 0.4.0 Download charts_flutter 0.4.0 archive
0.3.0 May 10, 2018 Go to the documentation of charts_flutter 0.3.0 Download charts_flutter 0.3.0 archive
0.2.0 Apr 16, 2018 Go to the documentation of charts_flutter 0.2.0 Download charts_flutter 0.2.0 archive
0.0.1+1 Mar 23, 2018 Go to the documentation of charts_flutter 0.0.1+1 Download charts_flutter 0.0.1+1 archive
0.0.1 Mar 23, 2018 Go to the documentation of charts_flutter 0.0.1 Download charts_flutter 0.0.1 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Issues and suggestions

Support Dart 2 in pubspec.yaml.

The SDK constraint in pubspec.yaml doesn't allow the Dart 2.0.0 release. For information about upgrading it to be Dart 2 compatible, please see


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.23.0 <2.0.0