mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-22 17:27:50 +08:00
98e085419c
Signed-off-by: fufesou <shuanglongchen@yeah.net>
32 lines
1.0 KiB
Dart
32 lines
1.0 KiB
Dart
import 'package:flutter/material.dart';
|
|
import 'package:flutter_hbb/common.dart';
|
|
import 'package:flutter_hbb/desktop/pages/remote_tab_page.dart';
|
|
import 'package:flutter_hbb/models/platform_model.dart';
|
|
import 'package:flutter_hbb/desktop/widgets/refresh_wrapper.dart';
|
|
import 'package:provider/provider.dart';
|
|
|
|
/// multi-tab desktop remote screen
|
|
class DesktopRemoteScreen extends StatelessWidget {
|
|
final Map<String, dynamic> params;
|
|
|
|
DesktopRemoteScreen({Key? key, required this.params}) : super(key: key) {
|
|
bind.mainStartGrabKeyboard();
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
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,
|
|
),
|
|
));
|
|
}
|
|
}
|