component_creator 0.0.5
A powerful CLI tool for automatically generating Flutter components with integrated design system theming. Streamlines the process of creating new Flutter widgets by generating all necessary files including the component widget, theme files, and proper integration with your design system.
Component Creator Documentation
Welcome to the Component Creator documentation! This directory contains comprehensive documentation for the Component Creator CLI tool.
📚 Documentation Index
Getting Started
- Main README - Project overview, installation, and quick start guide
- Usage Guide - Detailed step-by-step instructions and examples
Reference Documentation
- API Documentation - Complete API reference for all classes and methods
- Contributing Guide - Guidelines for contributors and developers
Project Information
- Changelog - Version history and release notes
- pubspec.yaml - Package configuration and metadata
🚀 Quick Start
Installation
# From source
git clone <repository-url>
cd component_creator
dart pub get
dart pub global activate --source path .
# Global installation
dart pub global activate component_creator
Basic Usage
# Interactive mode
component_creator
# Direct mode
component_creator Button
component_creator "Custom Card"
What Gets Generated
For a component named "Button", the tool creates:
lib/components/ds_button/ds_button.dart- Main component widgetlib/theme/components/ds_button/ds_button_theme.dart- Theme classlib/theme/components/ds_button/ds_button_theme.ext.dart- Theme extension- Updates to
lib/theme/ds_theme.dartandlib/theme/base/app_theme/ds_app_theme.dart
📖 Documentation Structure
docs/
├── README.md # This file - documentation index
├── API.md # Complete API reference
├── USAGE_GUIDE.md # Step-by-step usage instructions
└── CONTRIBUTING.md # Contributor guidelines
🎯 Documentation Goals
For Users
- Clear Installation Instructions: Step-by-step setup guide
- Comprehensive Usage Examples: Real-world examples and use cases
- Troubleshooting Guide: Common issues and solutions
- Best Practices: Recommended approaches and patterns
For Developers
- Complete API Reference: All classes, methods, and properties
- Architecture Overview: System design and component relationships
- Contributing Guidelines: How to contribute to the project
- Development Setup: Local development environment setup
For Maintainers
- Release Process: How to create and publish releases
- Testing Guidelines: Testing strategies and requirements
- Code Standards: Coding conventions and style guidelines
- Documentation Maintenance: How to keep docs up to date
🔍 Finding What You Need
I'm New to Component Creator
Start with:
- Main README - Project overview and features
- Usage Guide - Step-by-step instructions
- API Documentation - Reference when you need details
I Want to Use Component Creator
Read:
- Usage Guide - Complete usage instructions
- API Documentation - For advanced customization
- Main README - For troubleshooting
I Want to Contribute
Read:
- Contributing Guide - Contribution guidelines
- API Documentation - Understanding the codebase
- Usage Guide - Understanding user needs
I'm Looking for Specific Information
| What You Need | Where to Look |
|---|---|
| Installation instructions | Main README |
| Usage examples | Usage Guide |
| API reference | API Documentation |
| Error messages | Usage Guide |
| Contributing guidelines | Contributing Guide |
| Version history | Changelog |
| Package configuration | pubspec.yaml |
📝 Documentation Standards
Writing Guidelines
- Clear and Concise: Use simple, direct language
- Code Examples: Include practical, runnable examples
- Consistent Formatting: Follow markdown best practices
- Regular Updates: Keep documentation current with code changes
Code Examples
- Include complete, runnable examples
- Use realistic component names
- Show both simple and advanced use cases
- Provide context and explanations
File Organization
- Logical grouping: Related information together
- Progressive disclosure: Start simple, add complexity
- Cross-references: Link between related sections
- Consistent structure: Similar sections across files
🔄 Keeping Documentation Updated
When to Update Documentation
- New features are added
- API changes are made
- Bug fixes affect user experience
- Installation process changes
- Dependencies are updated
How to Update Documentation
- Update relevant files when making code changes
- Test examples to ensure they still work
- Review for accuracy and completeness
- Update version numbers and dates
- Cross-reference related sections
🤝 Contributing to Documentation
Documentation Contributions
We welcome contributions to improve documentation:
- Report issues with unclear or outdated documentation
- Suggest improvements for better clarity
- Add examples for common use cases
- Translate documentation to other languages
- Fix typos and formatting issues
Documentation Pull Requests
When submitting documentation changes:
- Follow the style guide for consistency
- Test examples to ensure they work
- Update related sections if needed
- Add appropriate labels to PRs
- Request review from maintainers
📞 Getting Help
Documentation Issues
If you find issues with documentation:
- Open an issue on GitHub
- Describe the problem clearly
- Suggest improvements if possible
- Include context about what you were trying to do
Missing Information
If you can't find what you need:
- Search existing issues for similar requests
- Ask in discussions on GitHub
- Check the main README for contact information
- Consider contributing the missing documentation
🔗 External Resources
Related Documentation
- Dart Documentation - Dart language reference
- Flutter Documentation - Flutter framework docs
- pub.dev - Dart package repository
Community Resources
- Flutter Community - Flutter community resources
- Dart Community - Dart community resources
- GitHub Discussions - Project discussions
📄 License
This documentation is licensed under the same terms as the Component Creator project - see the LICENSE file for details.
🙏 Acknowledgments
Thank you to all contributors who have helped improve this documentation and the Component Creator project.
Last updated: January 2024