main.dart 616 B

123456789101112131415161718192021222324
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_easyloading/flutter_easyloading.dart';
  3. import 'package:keyboard_android_example/page/home_page.dart';
  4. import 'package:keyboard_android_example/util/ToastUtil.dart';
  5. void main() {
  6. runApp(const MyApp());
  7. ToastUtil.configLoading();
  8. }
  9. /// 主页面
  10. class MyApp extends StatelessWidget {
  11. const MyApp({super.key});
  12. @override
  13. Widget build(BuildContext context) {
  14. const title = 'Keyboard Plugin example app';
  15. return MaterialApp(
  16. builder: EasyLoading.init(),
  17. title: title,
  18. home: const HomePage(title: title),
  19. );
  20. }
  21. }