fluttrify 1.0.2 copy "fluttrify: ^1.0.2" to clipboard
fluttrify: ^1.0.2 copied to clipboard

A CLI tool to easily rename Flutter project package names for Android and iOS.

example/example.dart

import 'dart:io';

// This is a simple example script that demonstrates how to use Fluttrify
void main() async {
  // Define the new package name
  final newPackageName = 'com.company.hello';

  // Print instructions
  print('Fluttrify Example');
  print('================');
  print(
      'This example will demonstrate how to rename your Flutter app package.');
  print('');
  print('To use Fluttrify in a real Flutter project:');
  print('');
  print('1. Install Fluttrify globally:');
  print('   dart pub global activate fluttrify');
  print('');
  print('2. Navigate to your Flutter project root directory:');
  print('   cd path/to/your/flutter_project');
  print('');
  print('3. Run the following command:');
  print('   fluttrify $newPackageName');
  print('');
  print('For more options, run:');
  print('   fluttrify --help');
  print('');

  // Check if we're in a Flutter project
  final androidDir = Directory('android');
  final iosDir = Directory('ios');

  if (androidDir.existsSync() || iosDir.existsSync()) {
    print('Flutter project detected! You can run Fluttrify directly:');
    print('');
    print('   fluttrify $newPackageName');
    print('');
  } else {
    print('This doesn\'t appear to be a Flutter project directory.');
    print(
        'Please navigate to a Flutter project directory before running Fluttrify.');
  }

  print('For more information, see the README.md file.');
}
0
likes
145
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

A CLI tool to easily rename Flutter project package names for Android and iOS.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

args, path, xml

More

Packages that depend on fluttrify