fwfh_chewie 0.14.8 copy "fwfh_chewie: ^0.14.8" to clipboard
fwfh_chewie: ^0.14.8 copied to clipboard

WidgetFactory extension to render VIDEO with the chewie plugin.

example/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
import 'package:fwfh_chewie/fwfh_chewie.dart';

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'fwfh_chewie',
      home: Scaffold(
        appBar: AppBar(
          title: const Text('ChewieFactory Demo'),
        ),
        body: Center(
          child: HtmlWidget(
            '''
<video controls width="250">
  <source src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4" type="video/mp4">
  <code>VIDEO</code> support is not enabled.
</video>''',
            factoryBuilder: () => MyWidgetFactory(),
          ),
        ),
      ),
    );
  }
}

class MyWidgetFactory extends WidgetFactory with ChewieFactory {}
10
likes
160
points
169k
downloads

Publisher

verified publisherdaohoangson.com

Weekly Downloads

WidgetFactory extension to render VIDEO with the chewie plugin.

Repository (GitHub)
View/report issues

Topics

#video #fwfh

Documentation

API reference

Funding

Consider supporting this project:

patreon.com
buymeacoffee.com

License

MIT (license)

Dependencies

chewie, flutter, flutter_widget_from_html_core, video_player

More

Packages that depend on fwfh_chewie