feat:初始化工程

This commit is contained in:
2025-11-11 21:56:15 +08:00
commit 6a35062a57
129 changed files with 4856 additions and 0 deletions

37
lib/main.dart Normal file
View File

@@ -0,0 +1,37 @@
import 'package:flutter/material.dart';
import 'package:flutter_inappwebview/flutter_inappwebview.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
home: Scaffold(body: SafeArea(child: InAppWebViewExample())),
);
}
}
class InAppWebViewExample extends StatefulWidget {
@override
_InAppWebViewExampleState createState() => _InAppWebViewExampleState();
}
class _InAppWebViewExampleState extends State<InAppWebViewExample> {
InAppWebViewController? webViewController;
@override
Widget build(BuildContext context) {
return InAppWebView(
initialUrlRequest: URLRequest(
url: WebUri("http://14.103.235.151/"),
),
onWebViewCreated: (InAppWebViewController controller) {
webViewController = controller;
},
);
}
}