fwfh_chewie 0.6.0-rc.2021030202 copy "fwfh_chewie: ^0.6.0-rc.2021030202" to clipboard
fwfh_chewie: ^0.6.0-rc.2021030202 copied to clipboard

outdated

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(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'fwfh_chewie',
      home: Scaffold(
        appBar: AppBar(
          title: Text('ChewieFactory Demo'),
        ),
        body: Center(
          child: HtmlWidget(
            '''<video controls width="320" height="176">
  <source src="https://www.w3schools.com/html/mov_bbb.mp4" type="video/mp4">
  <source src="https://www.w3schools.com/html/mov_bbb.ogg" type="video/ogg">
  Your browser does not support HTML5 video.
</video>''',
            factoryBuilder: () => MyWidgetFactory(),
          ),
        ),
      ),
    );
  }
}

class MyWidgetFactory extends WidgetFactory with ChewieFactory {}
9
likes
0
pub points
92%
popularity

Publisher

verified publisherdaohoangson.com

WidgetFactory extension to render VIDEO with the chewie plugin.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

chewie, flutter, flutter_widget_from_html_core, video_player

More

Packages that depend on fwfh_chewie