fwfh_chewie
0.16.1, released a year ago by daohoangson.com
Render VIDEO tags using Chewie inside HtmlWidget
What it does
It extends HtmlWidget to replace <video> tags with a Chewie video player. It supports flutter_widget_from_html_core and video_player dependencies. It works on Android, iOS, web, macOS.
AI-written summary of version 0.16.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to display video content from HTML in a Flutter app
- You already use flutter_widget_from_html_core and want a ready‑made video player
Skip it when
- You prefer a different video player like just_audio or audioplayers
- You need advanced custom controls not provided by Chewie
Strengths
- Easy integration with HtmlWidget
- Supports multiple platforms
- Keeps video logic separate from HTML parsing
Weaknesses
- Depends on Chewie, so inherits its limitations
- No custom control overrides beyond Chewie defaults
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add fwfh_chewie and flutter_widget_from_html_core to pubspec, then mix in ChewieFactory into your WidgetFactory
```dart
import 'package:flutter_widget_from_html_core/flutter_widget_from_html_core.dart';
import 'package:fwfh_chewie/fwfh_chewie.dart';
HtmlWidget(
html,
factoryBuilder: () => MyWidgetFactory(),
)
class MyWidgetFactory extends WidgetFactory with ChewieFactory {}
```Alternatives
Packages that do the same job and could replace fwfh_chewie.
- video_player_android
Android implementation of the video_player plugin
88Compare - video_player_avfoundation
iOS and macOS implementation of the video_player plugin
86Compare - fvp
Video player plugin and backend APIs supporting desktop and mobile with hardware decoders and FFmpeg.
90Compare - native_video_player
A Flutter widget to play videos on iOS and Android using a native implementation.
67Compare
Works with
Packages commonly used together with fwfh_chewie: ones it builds on, ones built on it, and its own family.
- video_playerfwfh_chewie depends on itFlutter plugin for displaying inline video on Android, iOS, macOS, and web.
- chewiefwfh_chewie depends on itVideo player widget with Material/Cupertino controls
- flutter_widget_from_html_corefwfh_chewie depends on itRender HTML content as native Flutter widgets with correctness and extensibility.
- fwfh_webviewSame familyWidgetFactory extension to render IFRAME elements using the official WebView plugin.
- fwfh_svgSame familyWidgetFactory extension to render SVG inside HTML widgets via flutter_svg.
- fwfh_url_launcherSame familyWidgetFactory mixin to launch links in HTML widgets via url_launcher.
- fwfh_cached_network_imageSame familyWidgetFactory extension to render HTML IMG tags using cached_network_image.
- flutter_widget_from_htmlBuilt on fwfh_chewieRender HTML content as native Flutter widgets with support for common tags, CSS, and media.