From 36a83f9ae461c3df1be54195355b462f9a81f100 Mon Sep 17 00:00:00 2001 From: flemming-it Date: Fri, 28 Aug 2026 00:11:55 +0200 Subject: [PATCH] fix: setState callback must not return the reload future Signed-off-by: flemming-it --- lib/src/flow_editor_page.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/src/flow_editor_page.dart b/lib/src/flow_editor_page.dart index 73d60ba..6363851 100644 --- a/lib/src/flow_editor_page.dart +++ b/lib/src/flow_editor_page.dart @@ -218,7 +218,10 @@ class _FlowEditorPageState extends State // change what the list must show. if (widget.flowsDir != old.flowsDir || !setEquals(widget.sampleFlowNames, old.sampleFlowNames)) { - setState(() => _files = _listFiles()); + final fresh = _listFiles(); + setState(() { + _files = fresh; + }); } }