multiple_screens 0.1.0 copy "multiple_screens: ^0.1.0" to clipboard
multiple_screens: ^0.1.0 copied to clipboard

discontinuedreplaced by: dual_screen
outdated

Flutter plugin for determing whether the device supports multi screen and whether the app is currently spanned across both screen.

multi_screen #

pub package Build Status

A Flutter plugin to determine whether the device supports multi screen and whether the app is currently spanned across both screen.

Usage #

import 'package:multi_screen/multi_screen.dart';

Determine whether the app is run on a multi screen device

bool isMultiDevice = await MultiScreen.isMultiScreenDevice;

Determine whether the app is currently spanned across both screens

bool isAppSpanned = await MultiScreen.isAppSpanned;

Subscribing to app spanned across both screen stream

MultiScreen.isAppSpannedStream().listen(
  (data) => setState(() => _isAppSpannedStream = data)
);

Using the MultiScreenScaffold widget

MultiScreenScaffold(
  //Must supply whether the app is spanned
  //This can be the result of the app spanned stream
  appSpanned
  //left and right must be specified without body
  //or body must be specified without left and right
  left
  right
  body
)

Getting Started #

See the example directory for a complete sample app

Issues and feedback #

Please file issues, bugs, or feature requests in our github issue tracker.

5
likes
30
pub points
35%
popularity

Publisher

verified publisherbuilttoroam.com

Flutter plugin for determing whether the device supports multi screen and whether the app is currently spanned across both screen.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on multiple_screens