如何在Flutter中自动播放视频?

时间:2019-08-28 15:02:13

标签: flutter

我要在颤动页面上播放自动视频而不是图片,我希望在播放后能够切换到另一个视频,该怎么办?我可以在另一个框架中执行此操作吗?你有什么建议吗?

class Ilkanimas extends StatefulWidget {
  @override
  _MyAppState createState() => new _MyAppState();
}

class _MyAppState extends State<Ilkanimas> {
  @override
  Widget build(BuildContext context) {
    return new SplashScreen(
        seconds: 8,
        navigateAfterSeconds: new HomePage(), //ikinci sayfaya yönlendirdik
        title: new Text(
          'Harun Yahya World',
          style: new TextStyle(
              fontWeight: FontWeight.w700,

              color: Colors.yellow,
              fontFamily: "GreatVibes-Regular",
              fontStyle: FontStyle.normal,
              fontSize: 28.0),
        ),

        image: new Image.network(
            'https://firebasestorage.googleapis.com/v0/b/book-7a285.appspot.com/o/ic_launcher.png?alt=media&token=605f6d54-7098-487c-ae4c-f70ae4476670'),
        backgroundColor: Color.fromRGBO(11, 8, 51,1.0),
        styleTextUnderTheLoader: new TextStyle(),
        photoSize: 100.0,
        onClick: () => print(""),
        loaderColor: Color.fromRGBO(11, 8, 51, 0.0));
  }
}

0 个答案:

没有答案