FLUTTER ECOSYSTEM

kemalturk/pandapie

Um gráfico de pizza elegante para pandas.

Capa do projeto pandapie
Stars
6
Forks
1
Último push (UTC)
19 de mar. de 2021
Status do projeto
Ativo
Kemal Türk GitHub avatar
GITHUB User

Kemal Türk ↗

...

Antalya(Turkey)
LinguagensDartSwiftKotlinObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 2 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

README original

Texto original em inglês. Visite o GitHub para a versão atual.

Expandir / recolher 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,
            ),
          ],
        ),
      ),
    );
  }
}