flutter_video_player_plugin
A new Flutter project.
This project is a starting point for a Flutter plug-in package, a specialized package that includes platform-specific implementation code for Android and/or iOS.
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
Run this command:
With Flutter:
$ flutter pub add flutter_video_player_plugin
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
flutter_video_player_plugin: ^0.0.3
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Now in your Dart code, you can use:
import 'package:flutter_video_player_plugin/flutter_video_player_plugin.dart';
import 'package:flutter/material.dart';
import 'package:flutter_video_player_plugin/flutter_video_player_plugin.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
body: const Center(
child: FractionallySizedBox(
heightFactor: 0.06,
child:FlutterVideoPlayerPlugin() ,
),
// child: FlutterVideoPlayerPlugin(),
),
),
);
}
}
Download details:
Author: deepgajjar
Source: https://github.com/deepgajjar/flutter_video_player_plugin