flutter_architect_cli 1.1.1
flutter_architect_cli: ^1.1.1 copied to clipboard
A CLI tool to scaffold Flutter projects with multiple architecture patterns (Clean Architecture, MVC, MVVM, MVP)
import 'package:flutter/material.dart';
/// Entry point of the example application.
void main() {
runApp(const MyApp());
}
/// Minimal example widget used for pub.dev preview.
class MyApp extends StatelessWidget {
/// Creates the root example widget.
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Architect CLI Example',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: const Scaffold(
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(Icons.architecture, size: 64, color: Colors.blue),
SizedBox(height: 20),
Text(
'Flutter Architect CLI',
style: TextStyle(fontSize: 24, fontWeight: FontWeight.bold),
),
SizedBox(height: 10),
Text(
'Run in terminal:',
style: TextStyle(fontSize: 16),
),
SizedBox(height: 10),
Text(
'flutter_architect create my_app',
style: TextStyle(
fontSize: 16,
fontFamily: 'monospace',
backgroundColor: Colors.black12,
),
),
],
),
),
),
);
}
}