fix: setState callback must not return the reload future
Signed-off-by: flemming-it <sf@flemming.it>
This commit is contained in:
parent
29294a2971
commit
36a83f9ae4
1 changed files with 4 additions and 1 deletions
|
|
@ -218,7 +218,10 @@ class _FlowEditorPageState extends State<FlowEditorPage>
|
||||||
// change what the list must show.
|
// change what the list must show.
|
||||||
if (widget.flowsDir != old.flowsDir ||
|
if (widget.flowsDir != old.flowsDir ||
|
||||||
!setEquals(widget.sampleFlowNames, old.sampleFlowNames)) {
|
!setEquals(widget.sampleFlowNames, old.sampleFlowNames)) {
|
||||||
setState(() => _files = _listFiles());
|
final fresh = _listFiles();
|
||||||
|
setState(() {
|
||||||
|
_files = fresh;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue