rustdesk/flutter/lib/plugin/ui_manager.dart

17 lines
349 B
Dart
Raw Normal View History

2023-05-08 13:10:39 +08:00
import 'package:flutter/material.dart';
class PluginUiManager {
PluginUiManager._();
static PluginUiManager instance = PluginUiManager._();
Map<String, Widget> entries = <String, Widget>{};
void registerEntry(String key, Widget widget) {
entries[key] = widget;
}
void unregisterEntry(String key) {
entries.remove(key);
}
}