flutter_presentation_display 2.0.4 copy "flutter_presentation_display: ^2.0.4" to clipboard
flutter_presentation_display: ^2.0.4 copied to clipboard

PlatformAndroid

A Flutter plugin designed to handling secondary (presentation) display

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_presentation_display_example/route.dart';

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

@pragma('vm:entry-point')
void secondaryDisplayMain() {
  runApp(const MySecondApp());
}

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      onGenerateRoute: generateRoute,
      initialRoute: '/',
    );
  }
}

class MySecondApp extends StatelessWidget {
  const MySecondApp({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      onGenerateRoute: generateRoute,
      initialRoute: 'presentation',
    );
  }
}