genearteFlutterProject method

void genearteFlutterProject(
  1. String name
)

Implementation

void genearteFlutterProject(String name) async {
  print('''
# ---------------------------------
# 🚀 Creating ${dcli.orange('Flutter')}💙 project
# ---------------------------------
''');
  await Process.run('flutter', ['create', name]);

  await File('$name/lib/main.dart').delete();

  await installPackages('flutter_screenutil', name);
  await installPackages('flutter_bloc', name);
  await installPackages('equatable', name);

  print('''
# ---------------------------------
# 🚀 Generating ${dcli.blue('Outshade')}💙 template
# ---------------------------------
''');

  generateMason(name);

  await Future.delayed(Duration(seconds: 2));

  print('''
# ---------------------------------
# 🚀 Setting Up the ${dcli.yellow('Github CI/CD')} ⛓
# ---------------------------------
''');
  generateGithubActionMason(name);

  print('''
\n
${dcli.green('All done! ✅')}
In order to run your application, type:

\$ cd $name
\$ flutter run

Your application code is in $name/lib/main.dart.
''');
}