better_player 0.4.0 copy "better_player: ^0.4.0" to clipboard
better_player: ^0.4.0 copied to clipboard

Advanced video player. It solves many typical use cases and it's easy to run.

example/lib/main.dart

import 'package:example/pages/welcome_page.dart';
import 'package:flutter/services.dart';
import 'package:flutter_localizations/flutter_localizations.dart'
    hide GlobalMaterialLocalizations;
import 'package:material_ui/material_ui.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return Shortcuts(
      shortcuts: <LogicalKeySet, Intent>{
        LogicalKeySet(LogicalKeyboardKey.select): const ActivateIntent(),
      },
      child: MaterialApp(
        title: 'Better player demo',
        localizationsDelegates: const [
          GlobalMaterialLocalizations.delegate,
          GlobalWidgetsLocalizations.delegate,
        ],
        supportedLocales: const [Locale('en', 'US'), Locale('pl', 'PL')],
        theme: ThemeData(primarySwatch: Colors.green),
        home: const WelcomePage(),
      ),
    );
  }
}