A CLI tool for installing templates, components, effects, and animations from the Flutter Widget Hub GitHub repository.
- Install Templates: Get complete app templates and UI clones
- Install Components: Access reusable layout components and blocks
- Install Animations: Get smooth, captivating animations
- Install Effects: Access visual effects including shadows, gradients, and transformations
- Category Filtering: Install specific categories (templates, blocks, animations, effects)
- Search Functionality: Search for specific components by name
- Local Storage: Components are saved to your local machine for easy access
Add this to your pubspec.yaml:
dependencies:
fwh_cli: ^0.0.1Then run:
dart pub getimport 'package:fwh_cli/fwh_cli.dart';
void main() async {
final fwhCli = FwhCli();
// Install all components
await fwhCli.installAll();
// Install specific category
await fwhCli.installCategory('templates');
// Search and install components
await fwhCli.searchAndInstall('button');
}# Install all components
fwh_cli install all
# Install specific category
fwh_cli install templates
fwh_cli install blocks
fwh_cli install animations
fwh_cli install effects
# Search and install
fwh_cli search button
# List available categories
fwh_cli list categories
# List installed components
fwh_cli list componentsComplete app templates and UI clones to jumpstart your projects:
- Authentication templates (auth_01 through auth_05)
- App templates (basuu, fruity_lips, nike_zoomer)
- Onboarding templates (doctor, mental_health, online)
- Spotify app template (complete with all screens)
Reusable layout components for consistent and responsive designs:
- Bottom navigation bars (docking_bar)
- Buttons (apple_books_fab)
- Cards
- Tabs (blurred_slide, expandable, liquid_glass, slide)
Smooth, captivating animations that enhance user experience:
- Skew card animations
- Custom animated components
Visual effects including shadows, gradients, and complex transformations:
- Mesh gradient effects (mesh_01, mesh_02)
- Visual effects and meshes
- Install the package
- Use the CLI commands or import the library
- Install the components you need
- Copy the code to your Flutter project
Main class for interacting with Flutter Widget Hub.
installAll(): Installs all available componentsinstallCategory(String category): Installs components from a specific categorysearchAndInstall(String query): Searches and installs matching componentslistCategories(): Lists all available categorieslistComponents(): Lists all installed components
final fwhCli = FwhCli();
// Install all templates
await fwhCli.installCategory('templates');
// Search for button components
await fwhCli.searchAndInstall('button');Utility class for installing components from GitHub.
installFromGitHub(String path): Installs a specific file from GitHubinstallDirectory(String path): Installs an entire directory from GitHubgetComponentList(): Gets the list of available components
The CLI tool connects to the Flutter Widget Hub repository at:
https://github.com/yunweneric/flutter-widgethub
Components are installed to a local directory structure that mirrors the repository organization.
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for your changes
- Submit a pull request
Please file issues and feature requests on the GitHub repository.
This project is licensed under the MIT License - see the LICENSE file for details.
See CHANGELOG.md for a list of changes and version history.
This CLI tool is built to work with the amazing Flutter Widget Hub project by yunweneric. Thank you for creating such a comprehensive collection of Flutter components!