22// Use of this source code is governed by a BSD-style license that can be
33// found in the LICENSE file.
44
5- import 'dart:html' as html;
65import 'dart:ui_web' as ui_web;
76
87import 'package:flutter/material.dart' ;
8+ import 'package:web/web.dart' as web;
99
10- /// The html.Element that will be rendered underneath the flutter UI.
11- html. Element htmlElement = html. DivElement ()
10+ /// The web.HTMLElement that will be rendered underneath the flutter UI.
11+ final web. HTMLElement htmlElement = web. HTMLDivElement ()
1212 ..style.width = '100%'
1313 ..style.height = '100%'
1414 ..style.backgroundColor = '#fabada'
@@ -17,7 +17,7 @@ html.Element htmlElement = html.DivElement()
1717
1818// See other examples commented out below...
1919
20- // html.Element htmlElement = html.VideoElement ()
20+ // final web.HTMLElement htmlElement = web.HTMLVideoElement ()
2121// ..style.width = '100%'
2222// ..style.height = '100%'
2323// ..style.cursor = 'auto'
@@ -27,7 +27,7 @@ html.Element htmlElement = html.DivElement()
2727// ..poster = 'https://peach.blender.org/wp-content/uploads/title_anouncement.jpg?x11217'
2828// ..controls = true;
2929
30- // html.Element htmlElement = html.IFrameElement ()
30+ // final web.HTMLElement htmlElement = web.HTMLIFrameElement ()
3131// ..width = '100%'
3232// ..height = '100%'
3333// ..id = 'background-html-view'
0 commit comments