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
470 B
21 lines
470 B
library universal_ui; |
|
|
|
import 'package:flutter/foundation.dart'; |
|
import 'fake_ui.dart' if (dart.library.html) 'real_ui.dart' as ui_instance; |
|
|
|
class PlatformViewRegistryFix { |
|
void registerViewFactory(dynamic x, dynamic y) { |
|
if (kIsWeb) { |
|
ui_instance.PlatformViewRegistry.registerViewFactory( |
|
x, |
|
y, |
|
); |
|
} |
|
} |
|
} |
|
|
|
class UniversalUI { |
|
PlatformViewRegistryFix platformViewRegistry = PlatformViewRegistryFix(); |
|
} |
|
|
|
var ui = UniversalUI();
|
|
|