update
This commit is contained in:
parent
20bc5a9ae6
commit
3da48add7e
6 changed files with 98 additions and 87 deletions
|
@ -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"))
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -158,4 +158,4 @@ class _FlowsPageState extends State<FlowsPage> {
|
|||
_ => const Text("..."),
|
||||
}));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue