This commit is contained in:
JMARyA 2024-09-25 10:49:21 +02:00
parent 20bc5a9ae6
commit 3da48add7e
Signed by: jmarya
GPG key ID: 901B2ADDF27C2263
6 changed files with 98 additions and 87 deletions

View file

@ -20,9 +20,11 @@ class _EndFlowWithProduceState extends State<EndFlowWithProduce> {
List<Widget> ret = [];
for (var i in widget.info.produces!) {
ret.add(ElevatedButton(onPressed: () {
// todo : implement adding
}, child: Text("Produced $i")));
ret.add(ElevatedButton(
onPressed: () {
// todo : implement adding
},
child: Text("Produced $i")));
}
return ret;
@ -38,14 +40,20 @@ class _EndFlowWithProduceState extends State<EndFlowWithProduce> {
Widget build(BuildContext context) {
// todo : show end screen with produce
return Scaffold(
appBar: AppBar(title: Text("End ${widget.info.name} Flow"),),
body: Column(children: [
...addProduceButtons(),
const Divider(),
// todo : add produced list
const SizedBox(height: 10,),
ElevatedButton(onPressed: _endFlow, child: const Text("End Flow"))
],),
appBar: AppBar(
title: Text("End ${widget.info.name} Flow"),
),
body: Column(
children: [
...addProduceButtons(),
const Divider(),
// todo : add produced list
const SizedBox(
height: 10,
),
ElevatedButton(onPressed: _endFlow, child: const Text("End Flow"))
],
),
);
}
}
}

View file

@ -158,4 +158,4 @@ class _FlowsPageState extends State<FlowsPage> {
_ => const Text("..."),
}));
}
}
}