Add comprehensive Copilot Instructions for Flutter and Dart Development by Copilot · Pull Request #2 · github/awesome-copilot · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Add comprehensive Copilot Instructions for Flutter and Dart Development #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Copilot
Copy link

@Copilot Copilot AI commented Jun 24, 2025

This PR adds comprehensive GitHub Copilot instructions for Flutter and Dart development, following the formatting and conventions of existing instruction files in the repository.

New File Added

  • instructions/flutter-dart.md - Complete Flutter and Dart development guidelines (594 lines)

What's Included

Core Development Guidelines

  • Error Handling: Clear messages, user feedback, error boundaries, logging, error reporting, TODO comments, input validation, edge case handling, and recovery mechanisms
  • General Guidelines: Dart language best practices, null-safety, code style, formatting, and const constructors
  • Flutter Best Practices: Widget structure, state management, responsive design, performance optimization, error handling, dependencies, security, and internationalization

Project Organization & Code Quality

  • File & Project Structure: Organized by models, screens, widgets with clean architecture patterns
  • Code Suggestions: Context-aware recommendations, complete snippets, proper imports, modern Dart 3.0+ features, Material Design 3 integration
  • Testing & Debugging: Unit, widget, integration tests; debugPrint, logging, analysis tools

Development Workflow

  • CI/CD and Workflow: GitHub Actions, semantic versioning, GitFlow best practices
  • Common Patterns: async/await, InheritedWidget, ThemeData, navigation patterns
  • Context Awareness: Intent recognition, clarifying questions, library recommendations

Additional Features

  • Accessibility: WCAG compliance, semantic labels, screen reader support
  • Platform-specific UI: iOS vs Android considerations, adaptive widgets
  • Performance: Best practices to avoid outdated patterns and optimize apps

Example Code Samples

The instructions include complete, working code examples for:

  • Custom widget creation with proper error handling
  • Async data loading with comprehensive error handling
  • New screen implementation with state management
  • API client usage with timeout and error handling

Format Compliance

  • ✅ YAML frontmatter with description and file patterns
  • ✅ Proper markdown structure with ## headers and bullet formatting
  • ✅ Consistent style matching existing files like blazor.md and angular.md
  • ✅ Automatically updated README.md via the update script

The file provides comprehensive guidance for creating maintainable, performant, and user-friendly Flutter applications following modern development practices.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: AndreaGriffiths11 <20666190+AndreaGriffiths11@users.noreply.github.com>
@Copilot Copilot AI changed the title [WIP] Add Copilot Instructions for Flutter and Dart Development (instructions/flutter-dart.md) Add comprehensive Copilot Instructions for Flutter and Dart Development Jun 24, 2025
@Copilot Copilot AI requested a review from AndreaGriffiths11 June 24, 2025 01:49
Copilot finished work on behalf of AndreaGriffiths11 June 24, 2025 01:49
@aaronpowell
Copy link
Contributor

@AndreaGriffiths11 there's some merge conflicts here, can you update them so we can merge this PR

Copilot AI and others added 2 commits July 1, 2025 23:54
Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
Co-authored-by: aaronpowell <434140+aaronpowell@users.noreply.github.com>
Copy link
Author

Copilot AI commented Jul 1, 2025

@AndreaGriffiths11 there's some merge conflicts here, can you update them so we can merge this PR

I've resolved the merge conflicts and updated the branch to be compatible with the latest main. The PR now includes all the changes from main while preserving the Flutter and Dart development instructions. Commit ac0f944 addresses the merge conflicts.

@Copilot Copilot AI requested a review from aaronpowell July 1, 2025 23:58
Copilot finished work on behalf of aaronpowell July 1, 2025 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.