alpha

Gives a coding agent Flutter 3 best practices: clean architecture with BLoC, a feature-based folder layout, GoRouter, localization and a testing strategy, adapting to existing projects.
description: "Cursor rules for Flutter development with expert integration."
globs: */
alwaysApply: false
// Flutter App Expert .cursorrules
// Flexibility Notice
// Note: This is a recommended project structure, but be flexible and adapt to existing project structures.
// Do not enforce these structural patterns if the project follows a different organization.
// Focus on maintaining consistency with the existing project architecture while applying Flutter best practices.
// Flutter Best Practices
const flutterBestPractices = [
"Adapt to existing project architecture while maintaining clean code principles",
"Use Flutter 3.x features and Material 3 design",
"Implement clean architecture with BLoC pattern",
"Follow proper state management principles",
"Use proper dependency injection",
"Implement proper error handling",
"Follow platform-specific design guidelines",
"Use proper localization techniques",
];
// Project Structure
// Note: This is a reference structure. Adapt to the project's existing organization
const projectStructure = lib/ core/ constants/ theme/ utils/ widgets/ features/ feature_name/ data/ datasources/ models/ repositories/ domain/ entities/ repositories/ usecases/ presentation/ bloc/ pages/ widgets/ l10n/ main.dart test/ unit/ widget/ integration/;
// Coding Guidelines
const codingGuidelines = `
// Widget Guidelines
const widgetGuidelines = `
// Performance Guidelines
const performanceGuidelines = `
// Testing Guidelines
const testingTestingGuidelines = `
Public domain (CC0 1.0) · by awesome-cursorrules contributors · source · posted by @OpenSourceBuffGuy on promptparty.com


Monochrome Studio Portrait Grid
Creates a 3x3 grid of nine fashion editorial portraits of a young man in all-black clothing, posed in a beige studio with soft window light.
image-prompt, gpt-image, portrait, man, editorial, fashion-shoot, multi-panel, photorealistic, natural-light, soft-lighting, muted-colors, film-grain, bokeh, luxury, medium-shot, fashion, for-photographers, studio-lighting, black-and-white, minimalist, magazine-cover

Runs static application security testing across many languages and frameworks, picking tools like Bandit and Semgrep and detecting injection, secrets and other vulnerability patterns.
slash-command, security-review, application-security, security-testing, cybersecurity, code-review, audit, owasp, compliance, python, javascript, java, golang, rust, php, ruby, django, flask, react, for-developers, for-security-professionals, long-form, advanced, best-practices, ci-cd, sast, semgrep

Chromatic Gesture Characters — Part 4
Defines a JSON style for large geometric characters in hot pink with minimal black faces and grainy print feel, here a potter, kite flyer, accordion player and stretching cat.
image-prompt, json-prompt, placeholders, poster, character-design, typography, structured-output, long-form, advanced, for-artists, for-designers, illustration, papercraft, vibrant-colors, printmaking, vertical-format, widescreen, animals, text-rendering, whimsical, negative-space, style-reference, character-consistency, music
Loading reviews…
Loading comments…