sharara_video_player 0.0.12 copy "sharara_video_player: ^0.0.12" to clipboard
sharara_video_player: ^0.0.12 copied to clipboard

A new Sharara package project for Better Performance and Easy Use.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:sharara_video_player/video_player_sharara.dart';
import 'package:video_player/video_player.dart';

main(){
  runApp(const ExampleApp());
}

class ExampleApp extends StatelessWidget {
  const ExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home:Scaffold(
        body:VideoPlayer(),
      ),
    );
  }
}

class VideoPlayer extends StatefulWidget {
  const VideoPlayer({super.key});
  @override
  State<VideoPlayer> createState() => _VideoPlayerState();
}

class _VideoPlayerState extends State<VideoPlayer> {

  late final ShararaVideoPlayerController controller;
  @override
  void initState() {
    controller = ShararaVideoPlayerController(playerController:
     VideoPlayerController.networkUrl(Uri.parse(
       "[your_custom_url]"
     ))
    );
   controller.playerController.pause();
    super.initState();
  }
  @override
  Widget build(BuildContext context) {
    return ShararaVideoPlayer(

      controller: controller,
    );
  }
}
1
likes
0
pub points
66%
popularity

Publisher

unverified uploader

A new Sharara package project for Better Performance and Easy Use.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, video_player

More

Packages that depend on sharara_video_player