buildDataUnavailable method
Implementation
Widget buildDataUnavailable() {
return Stack(
children: [
Opacity(
opacity: .3,
child: CustomPaint(
willChange: false,
size: size,
painter: ChordChartPainter(tabContext, chord),
),
),
Positioned.fromRect(
rect: Rect.fromPoints(Offset.zero, size.bottomRight(Offset.zero)),
child: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('Chord ${chord.chord.label()}'),
const Text('unavailable'),
Text('for ${chord.instrument.label()}'),
],
),
),
),
],
);
}