flutter_subscreen_plugin 1.3.2+3 copy "flutter_subscreen_plugin: ^1.3.2+3" to clipboard
flutter_subscreen_plugin: ^1.3.2+3 copied to clipboard

PlatformAndroid

支持双屏安卓设备,主副屏均使用 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
135
points
50
downloads

Publisher

unverified uploader

Weekly Downloads

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_subscreen_plugin