brand_forge 0.0.3 copy "brand_forge: ^0.0.3" to clipboard
brand_forge: ^0.0.3 copied to clipboard

A flutter package to change app name and icon via command line.

BrandForge: Dynamically Brand Your Flutter App #

pub package License: MIT

BrandForge is a powerful Flutter package that empowers you to dynamically change your Flutter application's name and icon directly from the command line or within your Dart code. This is incredibly useful for white-labeling, creating multiple app variants, or managing different branding strategies.

✨ Key Features #

  • Dynamic App Name Changes: Effortlessly modify the display name of your app for both iOS and Android platforms.
  • Custom App Icons: Swap out your app's icon with ease, allowing for complete visual rebranding on both platforms.
  • Comprehensive Logging: Track the changes made by BrandForge with detailed logging, including informative messages, progress indicators, success confirmations, and error reports.
  • Command-Line Interface (CLI): Operate BrandForge via the command line for efficient automation.
  • Programmatic API: Integrate BrandForge directly within your Dart code for complete flexibility.

🚀 Getting Started #

Prerequisites #

Before you begin, ensure you have the following:

  • Flutter SDK: Version 3.29.1 or higher.
  • Dart SDK: Version 3.7.0 or higher.
  • Development Environment: A working development environment configured for Flutter (e.g., Android Studio, VS Code).
  • Command-Line Access: You are comfortable using the command line or terminal.
  • Image Converter: To change the app icons, you need an image conversion tool.

Installation #

  1. Add Dependency: Open your project's pubspec.yaml file and add BrandForge as a dependency:

    dev_dependencies:
      brand_forge:
        git:
          url: https://github.com/Dhanabhon/brand_forge.git
          ref: main
    
  2. Get Package: Run the following command in your project's root directory:

    flutter pub get
    
  3. (Optional) Activate Globally: If you want to use the brand_forge command globally, run:

    flutter pub global activate --source git https://github.com/Dhanabhon/brand_forge.git
    

    Ensure that you have added the Pub cache bin directory to your PATH environment variable. You can follow this instruction.

🛠️ Usage #

Command-Line Interface (CLI) #

Here are examples of how to use BrandForge via the command line:

Change the iOS App Name:

   dart run brand_forge:main --ios-name "My New App Name"

Change the Android App Name:

   dart run brand_forge:main --android-name "My New App Name"

Change the Windows App Name:

   dart run brand_forge:main --windows-name "My New App Name"

Change the macOS App Name:

   dart run brand_forge:main --macos-name "My New App Name"

Change All App Names:

   dart run brand_forge:main --all-name "My New App Name"

Testing: The app name change functionality has been extensively tested on iOS, Android, and Windows devices. Successful changes were verified by rebuilding and running the application after using the CLI commands.

Note #

Currently, BrandForge supports renaming apps on iOS, Android, Windows, and macOS platforms. Future updates will include support for Linux, and Web platforms.

1
likes
160
points
15
downloads

Publisher

verified publisherdhanabhon.com

Weekly Downloads

A flutter package to change app name and icon via command line.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

args, flutter, path, xml

More

Packages that depend on brand_forge