main.dart 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. import 'package:flutter/material.dart';
  2. import 'package:webview_demo/pages/webview_page/view.dart';
  3. void main() {
  4. runApp(const MyApp());
  5. }
  6. class MyApp extends StatelessWidget {
  7. const MyApp({Key? key}) : super(key: key);
  8. // This widget is the root of your application.
  9. @override
  10. Widget build(BuildContext context) {
  11. return MaterialApp(
  12. title: 'Webview Demo',
  13. theme: ThemeData(
  14. // This is the theme of your application.
  15. //
  16. // Try running your application with "flutter run". You'll see the
  17. // application has a blue toolbar. Then, without quitting the app, try
  18. // changing the primarySwatch below to Colors.green and then invoke
  19. // "hot reload" (press "r" in the console where you ran "flutter run",
  20. // or simply save your changes to "hot reload" in a Flutter IDE).
  21. // Notice that the counter didn't reset back to zero; the application
  22. // is not restarted.
  23. primarySwatch: Colors.blue,
  24. ),
  25. home: const WebViewXPage(),
  26. debugShowCheckedModeBanner: false,
  27. );
  28. }
  29. }