dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
491 B
21 lines
491 B
4 years ago
|
import 'package:flutter/foundation.dart';
|
||
|
import 'fake_ui.dart' if (dart.library.html) 'real_ui.dart' as ui_instance;
|
||
|
|
||
|
class PlatformViewRegistryFix {
|
||
|
registerViewFactory(dynamic x, dynamic y) {
|
||
|
if (kIsWeb) {
|
||
|
// ignore: undefined_prefixed_name
|
||
|
ui_instance.platformViewRegistry.registerViewFactory(
|
||
|
x,
|
||
|
y,
|
||
|
);
|
||
|
} else {}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class UniversalUI {
|
||
|
PlatformViewRegistryFix platformViewRegistry = PlatformViewRegistryFix();
|
||
|
}
|
||
|
|
||
|
var ui = UniversalUI();
|