addingFlutterDependenciesSync static method

void addingFlutterDependenciesSync()

Adds common runtime Flutter dependencies to the workspace pubspec.

Throws:

  • Exception with message ⚠️ Failed to add Flutter dependencies on failure.

Implementation

static void addingFlutterDependenciesSync() {
  try {
    print('📦 Adding Flutter dependencies...');
    Process.runSync('flutter', [
      'pub',
      'add',
      'cupertino_icons',
    ], runInShell: true);
    print('✅ Flutter dependencies added');
  } catch (_) {
    throw Exception('⚠️ Failed to add Flutter dependencies');
  }
}