flutter_presentation_display 2.0.3 flutter_presentation_display: ^2.0.3 copied to clipboard
A Flutter plugin designed to run on multiple displays
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',
);
}
}