FLUTTER ECOSYSTEM

kemalturk/pandapie

一个用于 pandas 的精美饼图。

pandapie 项目封面
Stars
6
Forks
1
最近推送(UTC)
2021年3月19日
项目状态
未归档
Kemal Türk GitHub avatar
GITHUB User

Kemal Türk ↗

...

Antalya(Turkey)
语言DartSwiftKotlinObjective-C

此仓库发布的插件

使用的依赖

依赖清单 2 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

Pub

PandaPie

A fancy pie chart for pandas. Pandapie designed for new neumorphic design trend.

Preview PageView
Preview Png Preview Gif
PandaPie
  • size - size of chart
  • selectedKey - selected key
PandaPieData
  • id - the id of this item
  • value - the value of this item

Getting Started

Add the dependency in pubspec.yaml:

dependencies:
  ...
  pandapie: ^0.1.2

Basic Usage

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      backgroundColor: Color(0xFF202327),
      body: Center(
        child: PandaPie(
          selectedKey: '3',
          data: [
            PandaPieData(
              key: '1',
              value: 50,
            ),
            PandaPieData(
              key: '2',
              value: 50,
            ),
            PandaPieData(
              key: '3',
              value: 30,
            ),
          ],
        ),
      ),
    );
  }
}