akinsho / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp
MIT License
935 stars 75 forks source link

Flutter/Dart project detection improvement #282

Open mikeborodin opened 10 months ago

mikeborodin commented 10 months ago

hi,

I ran into an issue that I couldn't start debugging. The error was about "dart:ui" inaccessible for this platform so I figured out it tries to run dart instead of flutter. For some reason I didn't have that .metadata file which is currently used to distinguish between pure dart and flutter projects. Maybe this logic could be improved? I'd be willing to contibute, I'm just a beginner in lua :)

    local is_flutter_project = vim.loop.fs_stat(path.join(root_dir, ".metadata"))
akinsho commented 9 months ago

A contribution (regardless of lua skill level, it's not a complex project) would be very welcome as I don't have any time to do any work on this at all at the moment.