video_player_plus 0.0.2 copy "video_player_plus: ^0.0.2" to clipboard
video_player_plus: ^0.0.2 copied to clipboard

A Flutter video player,supported both iOS and Android.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:video_player_plus/video_player_plus.dart';
import 'package:video_player/video_player.dart';

void main() {
  runApp(MyApp());
}

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

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }


  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          children: <Widget>[
            Container(
              padding: EdgeInsets.only(top: 20,bottom: 20),
              child: VideoPlayerPlus(
                 VideoPlayerController.network("http://static.fanghnet.com/uploads/szxTest/uploads/video/2020/09/de5e206f904d498aa47f84e980adc759.jpg.mp4"),
              ),
            )
          ],
        ),
      ),
    );
  }
}
0
likes
30
pub points
26%
popularity

Publisher

unverified uploader

A Flutter video player,supported both iOS and Android.

Homepage

License

Apache-2.0 (LICENSE)

Dependencies

flutter, video_player

More

Packages that depend on video_player_plus