component_creator 0.0.5

SDKdartflutter
Platformwindowslinuxmacos

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

Project Information

🚀 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 widget
  • lib/theme/components/ds_button/ds_button_theme.dart - Theme class
  • lib/theme/components/ds_button/ds_button_theme.ext.dart - Theme extension
  • Updates to lib/theme/ds_theme.dart and lib/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:

  1. Main README - Project overview and features
  2. Usage Guide - Step-by-step instructions
  3. API Documentation - Reference when you need details

I Want to Use Component Creator

Read:

  1. Usage Guide - Complete usage instructions
  2. API Documentation - For advanced customization
  3. Main README - For troubleshooting

I Want to Contribute

Read:

  1. Contributing Guide - Contribution guidelines
  2. API Documentation - Understanding the codebase
  3. Usage Guide - Understanding user needs

I'm Looking for Specific Information

What You NeedWhere to Look
Installation instructionsMain README
Usage examplesUsage Guide
API referenceAPI Documentation
Error messagesUsage Guide
Contributing guidelinesContributing Guide
Version historyChangelog
Package configurationpubspec.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

  1. Update relevant files when making code changes
  2. Test examples to ensure they still work
  3. Review for accuracy and completeness
  4. Update version numbers and dates
  5. Cross-reference related sections

🤝 Contributing to Documentation

Documentation Contributions

We welcome contributions to improve documentation:

  1. Report issues with unclear or outdated documentation
  2. Suggest improvements for better clarity
  3. Add examples for common use cases
  4. Translate documentation to other languages
  5. Fix typos and formatting issues

Documentation Pull Requests

When submitting documentation changes:

  1. Follow the style guide for consistency
  2. Test examples to ensure they work
  3. Update related sections if needed
  4. Add appropriate labels to PRs
  5. 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

Community Resources


📄 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