openChordPlayCollectionFlow function
- BuildContext context,
- ChordPlayDeps args
Abre a lista de músicas de "Tocar pela cifra" por cima da tela de context; ao
abrir uma, vai para a tela da música dela.
Implementation
Future<void> openChordPlayCollectionFlow(
BuildContext context,
ChordPlayDeps args,
) => Navigator.of(context).push<void>(
MaterialPageRoute<void>(
builder: (_) => MusicCollectionScreen(
catalog: args.catalog,
track: chordPlayListTrack(),
onSong: (ctx, summary) => openChordSongScreen(ctx, args, summary),
onListen: (ctx, source) => openMusicListen(ctx, args.deps, source),
),
),
);