How google/flutter.widgets works
Project type and purpose
• This is a monorepo containing multiple standalone Flutter widget packages developed by Google.
• Each package provides a reusable UI component (e.g., tree view, linked scroll controller, scrollable list, self-storing inputs, visibility detector).
• The repo also contains CI/CD workflows, contribution guidelines, and helper scripts under the tool/ directory.
File structure
• Top‐level directories and files:
• .github/workflows/build.yaml – GitHub Actions build & test pipeline
• packages/ – each subfolder is a Flutter package with its own lib/, example/, test/, pubspec.yaml
• tool/ – scripts for generating documentation and validating CI actions
• Root‐level CI, license, contribution docs, and analysis options for linting
• Each package follows the same pattern:
• lib/src/ – core implementation
• lib/*.dart – public API
• example/ – sample Flutter app demonstrating usage
• test/ – unit and widget tests
• Key external dependency: Flutter SDK and pub.dev package manager.
README for additional insights
• The README lists all packages, their descriptions, and links to pub.dev.
Detail
• Five packages individually, showing their internal structure (lib, example, test).
• How .github/workflows/build.yaml references each package’s test suite.
• tool/ scripts as part of the build/test cycle.
• External dependencies and where they integrate (e.g., Flutter SDK in build step, pub.dev in publish step).