diff --git a/lua/flutter-tools/commands.lua b/lua/flutter-tools/commands.lua index bd46820..4862ad1 100644 --- a/lua/flutter-tools/commands.lua +++ b/lua/flutter-tools/commands.lua @@ -75,7 +75,9 @@ end ---Handle output from flutter run command ---@param is_err boolean if this is stdout or stderr local function on_run_data(is_err, data) - if is_err and config.dev_log.notify_errors then ui.notify(data, ui.ERROR, { timeout = 5000 }) end + if is_err and config.dev_log.notify_errors then + ui.notify("An error has occured! Check logs", ui.ERROR, { timeout = 5000, once = true }) + end dev_log.log(data) end