mirror of
https://github.com/johrpan/musicus_mobile.git
synced 2025-10-26 10:47: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
|
|
@ -44,8 +44,20 @@ class WorkScreen extends StatelessWidget {
|
|||
itemCount: snapshot.data.length,
|
||||
itemBuilder: (context, index) {
|
||||
final recording = snapshot.data[index];
|
||||
|
||||
return ListTile(
|
||||
title: PerformancesText(recording.id),
|
||||
title: FutureBuilder<RecordingInfo>(
|
||||
future: backend.db.getRecordingInfo(recording),
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.hasData) {
|
||||
return PerformancesText(
|
||||
performanceInfos: snapshot.data.performances,
|
||||
);
|
||||
} else {
|
||||
return Text('...');
|
||||
}
|
||||
}
|
||||
),
|
||||
onTap: () async {
|
||||
final tracks = backend.ml.tracks[recording.id];
|
||||
tracks.sort(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue