mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 02:57:22 +00:00
Refact. Build flutter web (#7472)
* Refact. Build flutter web Signed-off-by: fufesou <shuanglongchen@yeah.net> * Refact. Flutter web, wrap Platform.xx Signed-off-by: fufesou <shuanglongchen@yeah.net> --------- Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
1414
flutter/lib/web/bridge.dart
Normal file
1414
flutter/lib/web/bridge.dart
Normal file
File diff suppressed because it is too large
Load Diff
9
flutter/lib/web/common.dart
Normal file
9
flutter/lib/web/common.dart
Normal file
@@ -0,0 +1,9 @@
|
||||
|
||||
final isAndroid_ = false;
|
||||
final isIOS_ = false;
|
||||
final isWindows_ = false;
|
||||
final isMacOS_ = false;
|
||||
final isLinux_ = false;
|
||||
final isWeb_ = true;
|
||||
|
||||
final isDesktop_ = false;
|
||||
14
flutter/lib/web/plugin/handlers.dart
Normal file
14
flutter/lib/web/plugin/handlers.dart
Normal file
@@ -0,0 +1,14 @@
|
||||
abstract class NativeHandler {
|
||||
bool onEvent(Map<String, dynamic> evt);
|
||||
}
|
||||
|
||||
class NativeUiHandler extends NativeHandler {
|
||||
NativeUiHandler._();
|
||||
|
||||
static NativeUiHandler instance = NativeUiHandler._();
|
||||
|
||||
@override
|
||||
bool onEvent(Map<String, dynamic> evt) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
20
flutter/lib/web/texture_rgba_renderer.dart
Normal file
20
flutter/lib/web/texture_rgba_renderer.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
import 'dart:typed_data';
|
||||
|
||||
class TextureRgbaRenderer {
|
||||
Future<int> createTexture(int key) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<bool> closeTexture(int key) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<bool> onRgba(
|
||||
int key, Uint8List data, int height, int width, int strideAlign) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
|
||||
Future<int> getTexturePtr(int key) {
|
||||
throw UnimplementedError();
|
||||
}
|
||||
}
|
||||
5
flutter/lib/web/win32.dart
Normal file
5
flutter/lib/web/win32.dart
Normal file
@@ -0,0 +1,5 @@
|
||||
|
||||
/// No use, for compilation only.
|
||||
int getWindowsTargetBuildNumber_() {
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user