diff --git a/lib/main.dart b/lib/main.dart index 0417cfd..1f079ec 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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()); + })); } }