|
@@ -14,7 +14,8 @@ import 'package:webview_flutter/webview_flutter.dart';
|
|
|
class WebViewSharePage extends StatefulWidget {
|
|
|
final String url;
|
|
|
final String hash;
|
|
|
- WebViewSharePage(this.url, {this.hash});
|
|
|
+ final bool openShare;
|
|
|
+ WebViewSharePage(this.url, {this.hash, this.openShare = false});
|
|
|
@override
|
|
|
_WebViewSharePageState createState() => _WebViewSharePageState();
|
|
|
}
|
|
@@ -25,6 +26,20 @@ class _WebViewSharePageState extends State<WebViewSharePage> {
|
|
|
bool _isLoading = true;
|
|
|
|
|
|
@override
|
|
|
+ void initState() {
|
|
|
+ super.initState();
|
|
|
+ if(widget.openShare == true){
|
|
|
+ WidgetsBinding.instance.addPostFrameCallback((timeStamp) {
|
|
|
+ menuShareBottom(context, "Link",
|
|
|
+ url: "http://shoes-web.hiyd.com/share",
|
|
|
+ hasDownload: false,
|
|
|
+ hash: widget.hash);
|
|
|
+ });
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ @override
|
|
|
Widget build(BuildContext context) {
|
|
|
return AnnotatedRegion<SystemUiOverlayStyle>(
|
|
|
value: SystemUiOverlayStyle.dark,
|