fl_chart 0.1.4 copy "fl_chart: ^0.1.4" to clipboard
fl_chart: ^0.1.4 copied to clipboard

outdated

A powerful Flutter chart library, currently supporting Line Chart, Bar Chart and Pie Chart.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'bar_chart/bar_chart_page.dart';
import 'bar_chart/bar_chart_page2.dart';
import 'line_chart/line_chart_page.dart';
import 'line_chart/line_chart_page2.dart';
import 'line_chart/line_chart_page3.dart';
import 'pie_chart/pie_chart_page.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'FlChart Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        primaryColor: Color(0xff262545),
        primaryColorDark: Color(0xff201f39),
        brightness: Brightness.dark,
      ),
      home: MyHomePage(title: 'fl_chart'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SafeArea(
        child: PageView(
          children: <Widget>[
            LineChartPage(),
            BarChartPage(),
            BarChartPage2(),
            PieChartPage(),
            LineChartPage2(),
            LineChartPage3(),
          ],
        ),
      ),
    );
  }
}
5555
likes
0
pub points
100%
popularity

Publisher

verified publisherflchart.dev

A powerful Flutter chart library, currently supporting Line Chart, Bar Chart and Pie Chart.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on fl_chart