desktop_file_transfer_screen.dart 958 B

12345678910111213141516171819202122232425262728293031
  1. import 'package:flutter/material.dart';
  2. import 'package:flutter_hbb/common.dart';
  3. import 'package:flutter_hbb/desktop/pages/file_manager_tab_page.dart';
  4. import 'package:provider/provider.dart';
  5. /// multi-tab file transfer remote screen
  6. class DesktopFileTransferScreen extends StatelessWidget {
  7. final Map<String, dynamic> params;
  8. const DesktopFileTransferScreen({Key? key, required this.params})
  9. : super(key: key);
  10. @override
  11. Widget build(BuildContext context) {
  12. return MultiProvider(
  13. providers: [
  14. ChangeNotifierProvider.value(value: gFFI.ffiModel),
  15. ChangeNotifierProvider.value(value: gFFI.imageModel),
  16. ChangeNotifierProvider.value(value: gFFI.cursorModel),
  17. ChangeNotifierProvider.value(value: gFFI.canvasModel),
  18. ],
  19. child: Scaffold(
  20. backgroundColor: isLinux ? Colors.transparent : null,
  21. body: FileManagerTabPage(
  22. params: params,
  23. ),
  24. ),
  25. );
  26. }
  27. }