flow view
This commit is contained in:
parent
53bfe1763c
commit
c1906abc5b
1 changed files with 16 additions and 1 deletions
|
@ -86,7 +86,22 @@ class FlowsPage extends StatelessWidget {
|
||||||
// todo : add flow list
|
// todo : add flow list
|
||||||
// todo : flows by item produced
|
// todo : flows by item produced
|
||||||
// todo : flow page
|
// 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());
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue