flutter_presentation_display 2.0.4 flutter_presentation_display: ^2.0.4 copied to clipboard
A Flutter plugin designed to handling secondary (presentation) display
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',
);
}
}