diff --git a/flutter_quill_extensions/lib/embeds/image/editor/image_web_embed.dart b/flutter_quill_extensions/lib/embeds/image/editor/image_web_embed.dart index 8dd7fd47..d379f687 100644 --- a/flutter_quill_extensions/lib/embeds/image/editor/image_web_embed.dart +++ b/flutter_quill_extensions/lib/embeds/image/editor/image_web_embed.dart @@ -5,7 +5,8 @@ import 'package:universal_html/html.dart' as html; import '../../../models/config/image/editor/image_web_configurations.dart'; import '../../../utils/dart_ui/dart_ui_fake.dart' - if (dart.library.html) '../../../utils/dart_ui/dart_ui_real.dart' as ui; + if (dart.library.js_interop) '../../../utils/dart_ui/dart_ui_real.dart' + as ui; import '../../../utils/element_utils/element_web_utils.dart'; import '../../../utils/utils.dart'; diff --git a/flutter_quill_extensions/lib/embeds/video/editor/video_web_embed.dart b/flutter_quill_extensions/lib/embeds/video/editor/video_web_embed.dart index a5360615..1c5c4ad9 100644 --- a/flutter_quill_extensions/lib/embeds/video/editor/video_web_embed.dart +++ b/flutter_quill_extensions/lib/embeds/video/editor/video_web_embed.dart @@ -6,7 +6,8 @@ import 'package:youtube_player_flutter/youtube_player_flutter.dart' import '../../../models/config/video/editor/video_web_configurations.dart'; import '../../../utils/dart_ui/dart_ui_fake.dart' - if (dart.library.html) '../../../utils/dart_ui/dart_ui_real.dart' as ui; + if (dart.library.js_interop) '../../../utils/dart_ui/dart_ui_real.dart' + as ui; import '../../../utils/element_utils/element_web_utils.dart'; import '../../../utils/utils.dart'; diff --git a/flutter_quill_extensions/lib/utils/dart_ui/dart_ui_real.dart b/flutter_quill_extensions/lib/utils/dart_ui/dart_ui_real.dart index e38110eb..63c4e48a 100644 --- a/flutter_quill_extensions/lib/utils/dart_ui/dart_ui_real.dart +++ b/flutter_quill_extensions/lib/utils/dart_ui/dart_ui_real.dart @@ -1 +1 @@ -export 'dart:ui' if (dart.library.html) 'dart:ui_web'; +export 'dart:ui' if (dart.library.js_interop) 'dart:ui_web';