DEV Community

Pere Sola
Pere Sola

Posted on

How to fix "Name source files using `lowercase_with_underscores`" error in Flutter

Image description

If you are here is because you have the Name source files using lowercase_with_underscores error in Flutter. How to solve it?

Easy. Click on the link you see in the error. That page tells that names like SliderMenu.dart, filesystem.dart or file-system.dart are bad. You should be using underscores, like slider_menu.dart or file_system.dart.

Once you change the name of the file, Flutter will be happy.

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay