demo:add shareVideo

This commit is contained in:
JarvanMo
2018-08-26 19:32:30 +08:00
parent 169dd180eb
commit 53286a3342

View File

@ -47,23 +47,29 @@ class _MyAppState extends State<MyApp> {
class ShareSelectorPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Column(
children: <Widget>[
new OutlineButton(onPressed: () {
Navigator.of(context).pushNamed("shareText");
}, child: const Text("share text")),
new OutlineButton(onPressed: () {
Navigator.of(context).pushNamed("shareImage");
}, child: const Text("share image")),
new OutlineButton(onPressed: () {
Navigator.of(context).pushNamed("shareWebPage");
return Center(
child: new Column(
children: <Widget>[
new OutlineButton(onPressed: () {
Navigator.of(context).pushNamed("shareText");
}, child: const Text("share text")),
new OutlineButton(onPressed: () {
Navigator.of(context).pushNamed("shareImage");
}, child: const Text("share image")),
new OutlineButton(onPressed: () {
Navigator.of(context).pushNamed("shareWebPage");
}, child: const Text("share webpage")),
new OutlineButton(onPressed: () {
Navigator.of(context).pushNamed("shareMusic");
}, child: const Text("share webpage")),
new OutlineButton(onPressed: () {
Navigator.of(context).pushNamed("shareMusic");
}, child: const Text("share music")),
],
}, child: const Text("share music")),
new OutlineButton(onPressed: () {
Navigator.of(context).pushNamed("shareVideo");
}, child: const Text("share video")),
],
),
);
}
}