main.dart 512 B

12345678910111213141516171819202122232425
  1. import 'package:flutter/material.dart';
  2. import 'package:mvvm_flutter/view/home_page.dart';
  3. import 'di/app_module.dart';
  4. void main() async{
  5. // wait init
  6. await init();
  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. }