mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-03 11:29:25 +08:00
ea77d9284b
Signed-off-by: fufesou <shuanglongchen@yeah.net>
31 lines
995 B
Dart
31 lines
995 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_hbb/common.dart';
|
|
import 'package:flutter_hbb/desktop/pages/connection_tab_page.dart';
|
|
import 'package:get/get.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
/// multi-tab desktop remote screen
|
|
class DesktopRemoteScreen extends StatelessWidget {
|
|
final Map<String, dynamic> params;
|
|
|
|
const DesktopRemoteScreen({Key? key, required this.params}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
RxBool fullscreen = false.obs;
|
|
Get.put(fullscreen, tag: 'fullscreen');
|
|
return MultiProvider(
|
|
providers: [
|
|
ChangeNotifierProvider.value(value: gFFI.ffiModel),
|
|
ChangeNotifierProvider.value(value: gFFI.imageModel),
|
|
ChangeNotifierProvider.value(value: gFFI.cursorModel),
|
|
ChangeNotifierProvider.value(value: gFFI.canvasModel),
|
|
],
|
|
child: Scaffold(
|
|
body: ConnectionTabPage(
|
|
params: params,
|
|
),
|
|
));
|
|
}
|
|
}
|