Community Registry
Contribute a Fluttercomponent.
Flutter Loom is built through GitHub Pull Requests. Copy the canonical starter template, pass registry and Flutter CI validation, and ship reusable widgets straight to Flutter developers.
Starter template
registry/components/_template/
Contribution guidelines
CONTRIBUTING.md
Propose a component
Open a GitHub issue proposal
Submit Pull Request
Open PR against main
Fork & copy the starter template
Fork the repository on GitHub and copy registry/components/_template/ to registry/components/<your-slug>/.
Implement component.dart, demo.dart & preview.png
Keep dependencies minimal, support light/dark preview modes in demo.dart, and save your screenshot at files/preview.png.
Validate locally against schema & security rules
Run validate:registry, test:registry, flutter analyze --fatal-infos, flutter test, and website checks before committing.
Submit a Pull Request for maintainer review
Fill out .github/PULL_REQUEST_TEMPLATE.md completely. Read-only PR CI validates every manifest before merge.
Starter Manifest (component.json)
Every submitted component uses a canonical manifest validated against registry/schemas/component.schema.json. The _template folder is excluded automatically from registry builds.
{
"$schema": "../../schemas/component.schema.json",
"schemaVersion": "1.0.0",
"name": "Example Component",
"slug": "example-component",
"version": "1.0.0",
"author": { "name": "Your Name", "github": "your-github-handle" },
"license": "MIT",
"categories": ["cards"],
"tags": ["card", "flutter", "material-3"],
"requirements": {
"flutter": ">=3.27.0",
"dart": ">=3.6.0"
},
"platforms": ["android", "ios", "web", "macos", "windows", "linux"],
"dependencies": {},
"files": [
{
"source": "files/component.dart",
"target": "lib/widgets/example_component/component.dart",
"type": "dart",
"installable": true
},
{
"source": "files/demo.dart",
"target": "lib/widgets/example_component/demo.dart",
"type": "dart",
"installable": false
}
],Local Validation Before Submitting a PR
Run the exact checks executed by GitHub Actions on pull requests:
# Validate manifest schema, paths, licenses, and Dart safety rules
npm run validate:registry
# Build registry into a temporary check directory and run automated tests
npm run build:registry -- --out /tmp/flutter-loom-pr-check
npm run test:registry
# Verify formatting, static analysis, widget tests, and Next.js build
(cd flutter_preview && dart format --output=none --set-exit-if-changed . && flutter analyze --fatal-infos && flutter test)
npm run typecheck && npm run lint && npm run build