htmlWidgetWithPlatformMedia method

  1. @override
Widget htmlWidgetWithPlatformMedia(
  1. BuildContext context,
  2. AppModel app,
  3. String html, {
  4. List<HtmlPlatformMediumModel>? htmlPlatformMedia,
})
override

Implementation

@override
Widget htmlWidgetWithPlatformMedia(
    BuildContext context, AppModel app, String html,
    {List<HtmlPlatformMediumModel>? htmlPlatformMedia}) {
  return mobileHtmlSolution(context, app, html,
      htmlPlatformMedia: htmlPlatformMedia);
/*
  * This has now become obsolete as apparently the latest version of HtmlWidget works fine on web and mobile without the below funny stuff
  if (html.toUpperCase().contains("<VIDEO")) {
    return webHtmlSolution2(
        context, html, );
  } else {
    return webHtmlSolution(
        context, app, html, htmlPlatformMedia: htmlPlatformMedia);
  }
*/
}