mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 10:47:25 +01:00
Make work part details editable
This commit is contained in:
parent
97872f1646
commit
44de5fdae3
1 changed files with 29 additions and 2 deletions
|
|
@ -293,8 +293,35 @@ class _WorkEditorState extends State<WorkEditor> {
|
|||
partTiles.add(PartTile(
|
||||
key: Key(part.hashCode.toString()),
|
||||
part: part,
|
||||
// TODO: Make part details editable
|
||||
onMore: () {},
|
||||
onMore: () {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => StatefulBuilder(
|
||||
builder: (context, setState) => Dialog(
|
||||
child: ListView(
|
||||
shrinkWrap: true,
|
||||
children: <Widget>[
|
||||
WorkProperties(
|
||||
titleController: part.titleController,
|
||||
composer: part.composer,
|
||||
instruments: part.instruments,
|
||||
onComposerChanged: (composer) {
|
||||
setState(() {
|
||||
part.composer = composer;
|
||||
});
|
||||
},
|
||||
onInstrumentsChanged: (instruments) {
|
||||
setState(() {
|
||||
part.instruments = instruments;
|
||||
});
|
||||
},
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
},
|
||||
onAdd: () {
|
||||
setState(() {
|
||||
parts.insert(i + 1, PartData(level: part.level + 1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue