home_page.dart 655 B

123456789101112131415161718192021222324
  1. import 'package:flutter/material.dart';
  2. import 'package:web_package/views/web_page.dart';
  3. /// Description: home page
  4. /// open a link: https://flutter.cn/docs/development/ui/widgets-intro ,
  5. /// Time : 10/23/2023 Monday
  6. /// Author : liuyuqi.gov@msn.cn
  7. class HomePage extends StatefulWidget {
  8. const HomePage({super.key});
  9. @override
  10. State<HomePage> createState() => _HomePageState();
  11. }
  12. class _HomePageState extends State<HomePage> {
  13. @override
  14. Widget build(BuildContext context) {
  15. return const Scaffold(
  16. body: Center(
  17. // add a webview
  18. child: WebviewPage(url: "https://useragent.900cha.com/")),
  19. );
  20. }
  21. }