设备上的两个显示(屏幕)。如何工作?

发布于 2025-02-03 22:51:10 字数 299 浏览 5 评论 0原文

如何在颤音中使用第二个显示(屏幕)? 通过HDMI或无线连接到另一个屏幕的设备。 支持在两个屏幕上运行。

我的问题是插件或功能可以利用外部iOS/Android显示器显示从主显示器中显示单独的内容

How to work with second display (screen) in Flutter?
A device connected to another screen via an HDMI or Wireless.
Support to run on two screens.

My question like as Which Flutter plugin or feature can utilize an external iOS/Android display showing separate content from the main display

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你丑哭了我 2025-02-10 22:51:10

尝试此插件:
演示文稿显示1.0.0

  • 创建需要显示并将其定义为永久的小部件
    路由器将路由器配置在飘动代码中时。

  • 通过调用displaymanager.getdisplays()

    获取显示列表

  • 定义显示需要显示的显示:显示 1 <1 < /a>
    .displayid显示索引2。


  • 以您的routername显示为显示
    displaymanager.showsecondarydisplay(displayId:displays 1
    .displayId, routerName: "presentation")


  • displaymanager.transferdatatatopresentation(“测试传输数据”)

  • 辅助屏幕接收数据

    @override
    Widget build (BuildContext context) {
        return SecondaryDisplay (
            callback: (argument) {
            setState (() {
            value = argument;
            });
        }
        );
    }
  • Wesetup的辅助显示新入口点,因此我们可以决定什么
    我们需要呼吁初始化。目前仅适用于Android
     @pragma('vm:entry-point')
     void secondaryDisplayMain() {
       /// do something that don't break plugin registration here.
     }

Try this plugin:
Presentation Display 1.0.0

Simple steps:

  • Create Widgets that need to display and define them as a permanent
    router when you configure the router in the Flutter code.

  • Get the Displays list by calling displayManager.getDisplays ()

  • Define which Display needs to display For instance: displays 1
    .displayId Display the index 2.

  • Display it on Display with your routerName as presentation
    displayManager.showSecondaryDisplay (displayId: displays 1
    .displayId, routerName: "presentation")

  • Transmit the data from the main display to the secondary display by
    displayManager.transferDataToPresentation (" test transfer data ")

  • The secondary screen receives data

    @override
    Widget build (BuildContext context) {
        return SecondaryDisplay (
            callback: (argument) {
            setState (() {
            value = argument;
            });
        }
        );
    }
  • wesetup new entry point for secondary display so we can decided what
    we need to call for initialization. Works only for android for now
     @pragma('vm:entry-point')
     void secondaryDisplayMain() {
       /// do something that don't break plugin registration here.
     }

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文