addFlameDependency method
Adds the Flame, flutter_animate, and google_fonts dependencies to the project.
Implementation
@override
Future<void> addFlameDependency() async {
var projectDir = Directory(name);
var previousDir = Directory.current;
Directory.current = projectDir;
try {
await run('flutter pub add flame');
await run('flutter pub add flutter_animate');
await run('flutter pub add google_fonts');
} finally {
Directory.current = previousDir;
}
}