mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 18:57:25 +01:00
Add composers and work texts
These replace the work tile widget.
This commit is contained in:
parent
40db00d88d
commit
e834abe1e0
4 changed files with 68 additions and 87 deletions
|
|
@ -4,7 +4,7 @@ import '../backend.dart';
|
|||
import '../database.dart';
|
||||
import '../selectors/performer.dart';
|
||||
import '../selectors/work.dart';
|
||||
import '../widgets/work_tile.dart';
|
||||
import '../widgets/texts.dart';
|
||||
|
||||
class RecordingEditor extends StatefulWidget {
|
||||
final Recording recording;
|
||||
|
|
@ -70,10 +70,10 @@ class _RecordingEditorState extends State<RecordingEditor> {
|
|||
body: ListView(
|
||||
children: <Widget>[
|
||||
work != null
|
||||
? WorkTile(
|
||||
workId: work.id,
|
||||
onTap: selectWork,
|
||||
)
|
||||
? ListTile(
|
||||
title: WorkText(work.id),
|
||||
subtitle: ComposersText(work.id),
|
||||
)
|
||||
: ListTile(
|
||||
title: Text('Work'),
|
||||
subtitle: Text('Select work'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue