Skip to content
pubscout

external_display

0.5.3, released 4 days ago by an unverified publisher

Connect to external displays via wired or wireless connections and exchange data.

WASM-ready
$ flutter pub add external_display
Source repository

What it does

Allows Flutter apps to connect to wired or wireless external displays and present a secondary view. It provides bidirectional parameter transfer between the main view and the external display view, as well as screen status monitoring.

AI-written summary of version 0.5.2+1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to project your Flutter app content onto a secondary monitor or TV screen.
  • The main app and external display view need to exchange data or parameters.

Skip it when

  • You are targeting Windows, Linux, or Web platforms, which are not supported.
  • You only need basic web viewing or device info.

Strengths

  • Supports wired and wireless external displays across Android, iOS, and macOS.
  • Enables bidirectional parameter passing between main view and external view.
  • Includes platform-specific lifecycle handling like iOS UIScene support and macOS window management.

Weaknesses

  • Windows, Linux, and Web are not supported.
  • Requires manual native configuration on iOS (UIScene lifecycle) and macOS (AppDelegate setup) for full plugin compatibility.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
0

Requires native configuration in Info.plist / AppDelegate for iOS (UIScene support) and AppDelegate for macOS if using other plugins on the external display.

import 'package:flutter/material.dart';
import 'package:external_display/external_display.dart';

void main() {
  runApp(const MyApp());
}

@pragma('vm:entry-point')
void externalDisplayMain() {
  runApp(const MaterialApp(home: ExternalView()));
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(home: Home());
  }
}

class ExternalView extends StatelessWidget {
  const ExternalView({super.key});

  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      body: Center(child: Text('This is the external view.')),
    );
  }
}

class Home extends StatefulWidget {
  const Home({super.key});

  @override
  State<Home> createState() => _HomeState();
}

class _HomeState extends State<Home> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('External Display Example')),
      body: Center(
        child: TextButton(
          onPressed: () async {
            await externalDisplay.connect();
          },
          child: const Text('Connect'),
        ),
      ),
    );
  }
}

Alternatives

Packages that do the same job and could replace external_display.