vimeo_video_player 1.0.0 vimeo_video_player: ^1.0.0 copied to clipboard
A Flutter package to play Vimeo videos using their Video ID. Utilizes InAppWebView for smooth video playback directly in your Flutter app.
import 'package:flutter/material.dart';
import 'package:vimeo_video_player/vimeo_video_player.dart';
void main() => runApp(const MyApp());
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: MyHomePage(),
debugShowCheckedModeBanner: false,
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.black,
body: SafeArea(
child: VimeoVideoPlayer(
videoId: '12860646',
isAutoPlay: true,
),
),
);
}
}