Description
Describe the bug
I upgraded flutter to flutter 3.32 beta channel.
then, following error during running:
../../../../.pub-cache/hosted/pub.dev/html_editor_enhanced-2.6.0/lib/src/widgets/html_editor_widget_web.dart:502:8: Error: Undefined
name 'platformViewRegistry'.
ui.platformViewRegistry.registerViewFactory(createdViewId, (int viewId) => iframe);
^^^^^^^^^^^^^^^^^^^^
line 502 of ../../../../.pub-cache/hosted/pub.dev/html_editor_enhanced-2.6.0/lib/src/widgets/html_editor_widget_web.dart is as follows:
ui.platformViewRegistry.registerViewFactory(createdViewId, (int viewId) => iframe);
related import on top of it:
import 'package:html_editor_enhanced/utils/shims/dart_ui.dart' as ui;
Contents of utils/shims/dart_ui.dart:
/// This file shims dart:ui in web-only scenarios, getting rid of the need to
/// suppress analyzer warnings.
// TODO(tneotia): flutter/flutter#55000 Remove this file once web-only dart:ui APIs
// are exposed from a dedicated place.
export 'dart_ui_fake.dart' if (dart.library.html) 'dart_ui_real.dart';
how may we correct this?
Device:
running on flutter web