vimeoplayer_trinity 0.2.3 copy "vimeoplayer_trinity: ^0.2.3" to clipboard
vimeoplayer_trinity: ^0.2.3 copied to clipboard

A new Flutter package for playing any videos from Vimeo by id.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:vimeoplayer_trinity/vimeoplayer_trinity.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      //primarySwatch: Colors.red,
      theme: ThemeData.dark(),
      home: const VideoScreen(),
    );
  }
}

class VideoScreen extends StatelessWidget {
  const VideoScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: MediaQuery.of(context).orientation == Orientation.portrait
          ? AppBar(
              title: const Text('Vimeo Player Trinity'),
              centerTitle: true,
            )
          : null,
      body: Column(
        children: const [
          VimeoPlayer(
            id: '395212534',
            autoPlay: true,
            fullScreenByDefault: false,
          ),
        ],
      ),
    );
  }
}
20
likes
120
pub points
76%
popularity

Publisher

verified publishertaku.co.zw

A new Flutter package for playing any videos from Vimeo by id.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

better_player, flutter, http

More

Packages that depend on vimeoplayer_trinity