main.dart 559 B

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