mirror of
https://github.com/OpenFlutter/fluwx.git
synced 2025-08-26 08:13:38 +08:00
demo:add shareVideo
This commit is contained in:
@ -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")),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user