mirror of
https://github.com/rustdesk/rustdesk.git
synced 2024-12-05 04:59:05 +08:00
85cafda168
Signed-off-by: fufesou <shuanglongchen@yeah.net>
36 lines
1.3 KiB
Dart
36 lines
1.3 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/models/state_model.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.mainInitInputSource();
|
|
stateGlobal.getInputSource(force: true);
|
|
}
|
|
|
|
@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(
|
|
// Set transparent background for padding the resize area out of the flutter view.
|
|
// This allows the wallpaper goes through our resize area. (Linux only now).
|
|
backgroundColor: isLinux ? Colors.transparent : null,
|
|
body: ConnectionTabPage(
|
|
params: params,
|
|
),
|
|
));
|
|
}
|
|
}
|