main.dart 598 B

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