main.dart 526 B

123456789101112131415161718192021222324
  1. import 'package:flutter/material.dart';
  2. import 'package:mvvm_flutter/view/home_page.dart';
  3. import 'di/app_module.dart';
  4. import 'di/dartin.dart';
  5. void main() {
  6. startDartIn(appModule);
  7. runApp(MyApp());
  8. }
  9. class MyApp extends StatelessWidget {
  10. // This widget is the root of your application.
  11. @override
  12. Widget build(BuildContext context) {
  13. return MaterialApp(
  14. title: 'MVVM-Flutter',
  15. theme: ThemeData(
  16. primarySwatch: Colors.blue,
  17. ),
  18. home: HomePage('MVVM-Flutter'));
  19. }
  20. }