Coding
PromptBeginner5 minmarkdown
Nano Banana Pro
Agent skill for nano-banana-pro
7
Welcome to this Flutter project repository. This file contains the main points for new contributors and AI assistants working with Flutter/Dart projects.
Sign in to like and favorite skills
Welcome to this Flutter project repository. This file contains the main points for new contributors and AI assistants working with Flutter/Dart projects.
lib/ contains the main application code organized by features.lib/core/ for constants, errors, utilities, and themes.lib/data/ for models, repositories, and external services.lib/domain/ for entities, use cases, and business logic.lib/presentation/ for UI components, pages, and state management.test/ with unit, widget, and integration test directories.assets/ for images, icons, fonts, and other static resources.Set up Flutter environment and dependencies:
flutter doctor # Check Flutter installation flutter pub get # Get dependencies flutter pub run build_runner build # Generate code (if using code generation)
Format, analyze and check your changes:
dart format . # Format Dart code dart analyze # Static analysis flutter test # Run all tests
Run the application:
flutter run # Run on connected device/emulator flutter run -d chrome # Run web version flutter run --release # Run in release mode
Build for production:
flutter build apk # Android APK flutter build ios # iOS build flutter build web # Web build flutter build windows # Windows build (if configured)
Use Flutter's built-in testing framework with comprehensive coverage:
flutter test --coverage # Generate coverage report flutter test test/unit/ # Run unit tests only flutter test test/widget/ # Run widget tests only flutter test integration_test/ # Run integration tests
const constructors wherever possible for performance.async/await for asynchronous operations.Use conventional commit format:
type(scope): description Examples: feat(auth): implement biometric authentication fix(ui): resolve overflow issue on small screens perf(list): optimize ListView performance with builder refactor(state): migrate to Riverpod 2.0 providers test(models): add comprehensive user model tests style(widgets): update theme consistency across app
PRs should include:
Before submitting, ensure:
flutter test)dart analyze)dart format .)const constructors to improve performance.Key usage for widget identity.Builder widgets to manage context scope appropriately.dispose() methods.StateProvider for simple state, StateNotifierProvider for complex state.autodispose modifier to prevent memory leaks.family modifier for parameterized providers.ListView.builder for large lists instead of ListView.RepaintBoundary for expensive widgets.AutomaticKeepAliveClientMixin for preserving state.ValueListenableBuilder for granular rebuilds.Platform.isIOS and Platform.isAndroid for platform-specific code.json_annotation with json_serializable for JSON serialization.Semantics widget for screen reader support.