ai_chart 0.0.2 copy "ai_chart: ^0.0.2" to clipboard
ai_chart: ^0.0.2 copied to clipboard

A new chart widget Flutter package.

ai_chart #

totem


English Document 中文文档

我们的宗旨是:帮助开发者更加便利开发、切身体会编程之美! #

ai_chart: #

pub package

ai_chart项目中的实战应用flutter sample

效果图 #

iOS Android
ai_chart->ios ai_chart->android
macOS web
ai_chart->macOS ai_chart->web

1.安装 #

使用当前包作为依赖库

1. 依赖此库 #

在文件 'pubspec.yaml' 中添加

pub package


dependencies:

  ai_chart: ^version

或以这种方式添加


  # chart package.
  ai_chart:
    git:
      url: https://github.com/pdliuw/ai_chart.git

2. 安装此库 #

你可以通过下面的命令行来安装此库


$ flutter pub get


你也可以通过项目开发工具通过可视化操作来执行上述步骤

3. 导入此库 #

现在,在你的Dart编辑代码中,你可以使用:


import 'package:ai_chart/ai_chart.dart';

2.使用 #


            Container(
              width: 150,
              height: 150,
              margin: EdgeInsets.all(10),
              child: AirPieChart(
                size: Size(100, 100),
                roundCap: false,
                filled: false,
                useCenter: false,
                pieChartData: [
                  AirChartData(
                    value: _valueFirst,
                    color: Colors.orange,
                  ),
                  AirChartData(
                    value: _valueSecond,
                    color: Colors.green,
                  ),
                  AirChartData(
                    value: _valueThird,
                    color: Colors.red,
                  ),
                ],
                value: 50,
                valueStrokeWidth: 20,
                pathStrokeWidth: 20,
              ),
            ),

*6、更多用法点击,查看更多

LICENSE #

BSD 3-Clause License

Copyright (c) 2020, pdliuw
All rights reserved.
1
likes
30
pub points
20%
popularity

Publisher

unverified uploader

A new chart widget Flutter package.

Homepage
Repository (GitHub)
View/report issues

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on ai_chart