Utility Tools & Scripts
The Flutter Riverpod Clean Architecture template includes several utility scripts that help streamline development workflows.
App Renaming
Easily rebrand your app across all platforms with a single command:
./rename_app.sh --app-name "Your App Name" --package-name com.yourcompany.appname
This script updates:
- App display name in Android, iOS, macOS, Windows, Linux, and Web
- Package/bundle identifiers in all platforms
- File structures and import references
- Build configurations for all supported platforms
Language Generation
Add new languages or update translations with the localization helper:
./generate_language.sh --add fr,es,de # Add French, Spanish, and German
./generate_language.sh --sync # Synchronize all ARB files with the base English file
./generate_language.sh --gen # Generate Dart code from ARB files
Feature Generation
Quickly scaffold new features with all the necessary files:
./create_feature.sh feature_name # Create a new feature structure
This creates a new feature folder with data, domain, and presentation layers according to Clean Architecture principles.
Test File Generator
Generate test files for a feature:
./test_generator.sh feature_name
This script creates the necessary test files with appropriate boilerplate for the specified feature.
Documentation Builder
Build the documentation website:
cd docs && ./build_docs.sh
This script converts the Markdown documentation files to HTML and generates a beautiful documentation website.
Advanced Usage Examples
Creating a New Feature and Tests
# Create a new feature called "user_profile"
./create_feature.sh user_profile
# Generate test files for the user_profile feature
./test_generator.sh user_profile
Renaming Your App for Production
# Rename your app for production release
./rename_app.sh --app-name "My Awesome App" --package-name com.mycompany.awesomeapp
# Update AppStore and PlayStore configurations
./rename_app.sh --app-name "My Awesome App" --package-name com.mycompany.awesomeapp --app-store-id 123456789 --play-store-id com.mycompany.awesomeapp
Adding Multiple Languages
# Add support for French, German, and Japanese
./generate_language.sh --add fr,de,ja
# Update all translation files with new strings from the base English file
./generate_language.sh --sync
# Generate Dart code from the ARB files
./generate_language.sh --gen