animatrix_cli 1.0.2
animatrix_cli: ^1.0.2 copied to clipboard
A CLI tool to add Animatrix UI components to your Flutter project.
Animatrix CLI #
A command-line interface tool for easily adding pre-built UI components from the Animatrix library to your Flutter project.
Features #
- π Quickly add pre-built UI animated components to your project
- π Automatic updates checking
- π¨ Colorful console output for better user experience
- β‘ Simple and intuitive commands
Installation #
You can install the Animatrix CLI globally using the Dart pub tool:
dart pub global activate animatrix_cli
Usage #
To add a component to your Flutter project:
animatrix add <ComponentName>
The component will be added to your project's lib/ui/
directory. If the directory doesn't exist, it will be created automatically.
Example #
animatrix add gradient_text
This will:
- Create the
lib/ui/
directory if it doesn't exist - Fetch the CustomButton component from the Animatrix repository
- Create
gradient_text.dart
in yourlib/ui/
directory
Requirements #
- Dart SDK: Any stable version
- An active internet connection to fetch components
- A Flutter project structure
Dependencies #
- args: For parsing command-line arguments
- http: For making HTTP requests
- path: For handling file paths
- ansicolor: For colored console output
- pub_updater: For checking package updates
Error Handling #
The CLI provides clear error messages for common issues:
- When a component already exists in your project
- When a component is not found in the Animatrix repository
- When there are network connectivity issues
- When invalid commands are used
Updates #
The CLI automatically checks for updates when running commands. When a new version is available, you'll be notified with instructions on how to update.
License #
This project is licensed under the MIT License - see the LICENSE file for details.
Version #
Current Version: 1.0.1+3