addingFlutterDependenciesSync method
void
addingFlutterDependenciesSync()
Adds common runtime Flutter dependencies to the workspace pubspec.
Throws:
- Exception with message
⚠️ Failed to add Flutter dependencieson failure.
Implementation
void addingFlutterDependenciesSync() {
try {
log('📦 Adding Flutter dependencies...');
runner.runSync('flutter', [
'pub',
'add',
'cupertino_icons',
], runInShell: true);
log('✅ Flutter dependencies added');
} catch (_) {
throw Exception('⚠️ Failed to add Flutter dependencies');
}
}