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

支持双屏安卓设备,主副屏均使用 flutter 进行开发,提供双屏通信能力

example/lib/main.dart

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

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

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

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

Publisher

unverified uploader

Weekly Downloads

支持双屏安卓设备,主副屏均使用 flutter 进行开发,提供双屏通信能力

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flutter_subscreen_plugin