What Cursor Rules you have for Dart and Flutter?

I started using Cursor full-fledged for the past 2 weeks and then I started to see some patterns again and again in the generated code. One example was that Cursor used a lot of functional widgets compared to class widgets. I prompted in chat again and again to not follow that structure. Then I thought if Cursor has something similar to OpenAI’s custom instructions and then I came across Cursor rules and this amazing repo.

I found some useful rules here. Are there other Flutter/Dart Cursor rules you added that improve your code and workflow a lot?

1 Like

Only 1 rule is needed:

  1. Don’t use AI to program.
3 Likes

That is not the way to go, no matter if you or me like it or not.

AI can be sometimes dumb, sometimes clever, but it WILL be the future of programming. And you HAVE TO adapt.

I am not saying you should do “vibe coding”, since you definitely should not. But AI can be quite helpful for completion, generating test cases, etc.

2 Likes

Yeah, I agree. I find AI very useful for writing boilerplate code, testing properties, and for some simple logics. I am not sure why someone would not use it at all.

2 Likes

I use cursor too but haven’t defined any rules yet but mainly use it’s pretty good autocompletion

3 Likes