keyboard_chord_charts 0.0.1 copy "keyboard_chord_charts: ^0.0.1" to clipboard
keyboard_chord_charts: ^0.0.1 copied to clipboard

A very simple flutter package to display piano chord charts.

example/main.dart

import 'package:flutter/material.dart';
import 'package:keyboard_chord_charts/keyboard_chord_charts.dart';

void main() => runApp(MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Keyboard Chord Charts Example'),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.spaceAround,
            crossAxisAlignment: CrossAxisAlignment.center,
            children: [
              const Spacer(),
              const Text('From Notes'),
              const SizedBox(height: 24),
              KeyboardChordChart.fromNoteIndexes(
                const {0, 4, 7, 10},
                highlightColor: Colors.blue,
              ),
              const Spacer(),
              const Text('From Colors'),
              const SizedBox(height: 24),
              KeyboardChordChart.fromColors(const [
                Colors.red,
                Colors.green,
                Colors.blue,
                Colors.yellow,
                Colors.orange,
                Colors.purple,
                Colors.pink,
                Colors.cyan,
                Colors.teal,
                Colors.indigo,
                Colors.lime,
                Colors.brown,
                Colors.red,
                Colors.green,
                Colors.blue,
                Colors.yellow,
                Colors.orange,
                Colors.purple,
                Colors.pink,
                Colors.cyan,
                Colors.teal,
                Colors.indigo,
                Colors.lime,
                Colors.brown,
              ]),
              const Spacer(),
            ],
          ),
        ),
      ),
    ));
3
likes
160
points
17
downloads

Publisher

unverified uploader

Weekly Downloads

A very simple flutter package to display piano chord charts.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on keyboard_chord_charts