flutter_wechat 0.0.7 flutter_wechat: ^0.0.7 copied to clipboard
A flutter plugin to use wechat
import 'package:flutter/material.dart';
import 'package:flutter_wechat/flutter_wechat.dart';
void main() => runApp(new MyApp());
class MyApp extends StatefulWidget {
@override
_MyAppState createState() => new _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
initState() {
super.initState();
initPlatformState();
}
initPlatformState() async {
await FlutterWechat.registerWechat("wxb25d3dec3db1affc");
await FlutterWechat.shareVideo(imgUrl: "", type:0,videoUrl: "",videoLowBandUrl: "");
}
@override
Widget build(BuildContext context) {
return new MaterialApp(
home: new Scaffold(
body: new Center(
child: new Text('test'),
),
),
);
}
}