createNoAuthMainFileWithoutOnBoarding static method
Future<void>
createNoAuthMainFileWithoutOnBoarding(
- String projectName
)
Implementation
static Future<void> createNoAuthMainFileWithoutOnBoarding(
String projectName) async {
final File mainFile = File('lib/main.dart');
mainFile.writeAsStringSync('''
import 'package:flutter/material.dart';
import 'package:$projectName/shared/nav_bar.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
useMaterial3: true,
),
home: const NavigationScreen(),
);
}
}
''');
}