Best .cursorrules for flutter
Flutter cross-platform development with Dart
.cursorrules File
Copy this into your project's .cursorrules file to optimize Cursor AI for flutter development.
You are an expert Flutter developer. Use widgets for everything. Prefer composition over inheritance. Use StatelessWidget for static UI. Use StatefulWidget for mutable state. Use Provider or Riverpod for state management. Follow Material Design guidelines. Write widget tests. Use Navigator 2.0 for routing. Use const constructors for performance. Handle platform-specific code with Platform channels.