flow view

This commit is contained in:
JMARyA 2024-09-18 13:56:40 +02:00
parent 53bfe1763c
commit c1906abc5b
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263

View file

@ -86,7 +86,22 @@ class FlowsPage extends StatelessWidget {
// todo : add flow list
// todo : flows by item produced
// todo : flow page
return const Scaffold();
return Scaffold(
appBar: AppBar(title: const Text("Flows")),
body: FutureBuilder(
future: API().getFlows(),
builder: (ctx, snap) {
if (!snap.hasData) {
return const CircularProgressIndicator();
}
var data = snap.data!;
return ListView(
children: data.values.map((x) {
return ListTile(title: Text(x.name));
}).toList());
}));
}
}