flutter_guitar_tabs 0.0.10 flutter_guitar_tabs: ^0.0.10 copied to clipboard
A widget to display guitar/ukulele tabs. Renders open strings, muted strings, and bars.
import 'package:flutter/material.dart';
import 'package:flutter_guitar_tabs/flutter_guitar_tabs.dart';
main() {
runApp(const MaterialApp(
home: HomePage(),
));
}
class HomePage extends StatelessWidget {
const HomePage({
super.key,
});
@override
Widget build(BuildContext context) {
return Scaffold(
body: Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: [
// Guitar
Center(
child: TabWidget(
name: 'Dm',
tabs: const ["x 0 0 2 3 1", "x 5 7 7 6 5", "10 12 12 10 10 10"],
size: 5,
color: Colors.black,
showStartFretNumber: true,
),
),
// Ukulele
Center(
child: TabWidget(
name: 'Dm',
tabs: const ["2 2 1 0"],
size: 5,
color: Colors.black,
showStartFretNumber: true,
),
),
],
),
);
}
}