packagist_mvc 1.1.2 packagist_mvc: ^1.1.2 copied to clipboard
基础MVC框架封装
import 'package:flutter/material.dart';
import 'package:packagist_mvc/base/lifecycle_observer.dart';
import 'main/main_page.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
navigatorObservers: [lifecycleObserver],
title: 'Flutter Demo',
theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
useMaterial3: true,
),
home: const MainPage(),
);
}
}