mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 18:57:25 +01:00
mobile: Integrate with server
This commit is contained in:
parent
60a474ea56
commit
c93ebf17a0
20 changed files with 751 additions and 740 deletions
|
|
@ -152,6 +152,10 @@ class _PartTileState extends State<PartTile> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Screen for editing a work.
|
||||
///
|
||||
/// If the user is finished editing, the result will be returned as a [WorkInfo]
|
||||
/// object.
|
||||
class WorkEditor extends StatefulWidget {
|
||||
final Work work;
|
||||
|
||||
|
|
@ -319,12 +323,12 @@ class _WorkEditorState extends State<WorkEditor> {
|
|||
));
|
||||
}
|
||||
|
||||
await backend.db.updateWork(WorkData(
|
||||
final workInfo = await backend.client.putWork(WorkData(
|
||||
data: data,
|
||||
partData: partData,
|
||||
));
|
||||
|
||||
Navigator.pop(context, data.work);
|
||||
Navigator.pop(context, workInfo);
|
||||
},
|
||||
),
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue