fmk
3 years ago
5 changed files with 56 additions and 15 deletions
@ -0,0 +1,37 @@
|
||||
import 'package:flutter/material.dart'; |
||||
import 'package:huixiang/view_widget/my_appbar.dart'; |
||||
import 'package:webview_flutter/webview_flutter.dart'; |
||||
|
||||
class WebTurntableActivity extends StatelessWidget { |
||||
|
||||
@override |
||||
Widget build(BuildContext context) { |
||||
return Scaffold( |
||||
appBar: MyAppBar( |
||||
action: Container( |
||||
margin: EdgeInsets.only(right: 10), |
||||
child: GestureDetector( |
||||
onTap: () { |
||||
// share(); |
||||
}, |
||||
child: Icon( |
||||
Icons.share, |
||||
size: 24, |
||||
color: Colors.black, |
||||
), |
||||
), |
||||
), |
||||
title: "", |
||||
background: Color(0xFFFFFFFFF), |
||||
leadingColor: Colors.black, |
||||
), |
||||
body: Container( |
||||
width: MediaQuery.of(context).size.width, |
||||
height: MediaQuery.of(context).size.height, |
||||
child: |
||||
WebView( |
||||
initialUrl: "http://192.168.10.90:5500/lottery.html", |
||||
)), |
||||
); |
||||
} |
||||
} |
Loading…
Reference in new issue