flutter_subscreen_plugin 1.0.7 copy "flutter_subscreen_plugin: ^1.0.7" to clipboard
flutter_subscreen_plugin: ^1.0.7 copied to clipboard

outdated

The plug-in supports double screen Android device, and uses flutter to draw the main and secondary screens to realize communication and interaction between the two screens

example/lib/main.dart

import 'dart:ui';
import 'package:flutter/material.dart';
import 'main_widget.dart';
import 'sub_main_widget.dart';
import 'test_web/web_view_example.dart';

void main() {
  var defaultRouteName = window.defaultRouteName;
  if ("subMain" == defaultRouteName) {
    viceScreenMain();
  } else {
    defaultMain();
  }
}

//主屏ui
void defaultMain() {
  // runApp(WebViewExample());
  runApp(MaterialApp(home: MainApp(),));
}

//副屏ui
void viceScreenMain() {
  runApp(SubApp());
  // runApp(WebViewExample());
}
15
likes
0
points
48
downloads

Publisher

unverified uploader

Weekly Downloads

The plug-in supports double screen Android device, and uses flutter to draw the main and secondary screens to realize communication and interaction between the two screens

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_subscreen_plugin