secondary_screen 2.1.1 copy "secondary_screen: ^2.1.1" to clipboard
secondary_screen: ^2.1.1 copied to clipboard

PlatformAndroid

A Flutter package for managing Android dual/secondary screen displays with a state-manager-agnostic service API.

Changelog #

2.1.0 #

Breaking: flutter_bloc is no longer a dependency and SecondaryScreenCubit has been removed. Use SecondaryScreenScope and SecondaryScreenController instead.

  • Add SecondaryScreenService, a singleton service that owns secondary-display state and implements ValueListenable<SecondaryScreenState>
  • Add SecondaryScreenController, a convenience controller with show, send, showEvent, sendEvent, hide, and reconnect
  • Add SecondaryScreenScope, a primary-side wrapper widget that auto-initializes the service and exposes the controller through context
  • Add stateChanges for integrating the service with any state-management layer
  • Add SecondaryScreenBuilder and SecondaryScreenListener for Flutter UI rebuilds and side effects without requiring BLoC
  • Move SecondaryScreenState into a standalone exported model file
  • Update the example and README to use SecondaryScreenScope and SecondaryScreenController
  • Remove the package and example dependency on flutter_bloc

2.0.0 #

Breaking: the import path changed. Update imports to import 'package:secondary_screen/secondary_screen.dart';.

  • Flatten the library layout to lib/secondary_screen.dart + lib/src/, so the package is imported as package:secondary_screen/secondary_screen.dart (previously the redundant package:secondary_screen/secondary_screen/secondary_screen.dart)
  • Rename the internal source file secondary_screen_service.dartsecondary_screen_cubit.dart to match the SecondaryScreenCubit class (public class names are unchanged)
  • Rename the native MethodChannel/EventChannel IDs from presentation_displays_plugin* to secondary_screen* (Dart and Android kept in sync)
  • Rename the Android plugin package com.example.secondary_screencom.felixdinh.secondary_screen

1.0.1 #

  • Improve README with full usage guide, API reference, and setup instructions
  • Widen flutter_bloc constraint to >=8.1.3 <10.0.0 to support the latest stable (9.x)

1.0.0+1 #

  • Initial release
  • SecondaryScreenCubit for managing secondary display state with BLoC
  • Support for showing, hiding, and transferring data to secondary screens
  • Auto-reconnect on display change
  • TransferDataModel for structured data transfer between screens
2
likes
145
points
269
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package for managing Android dual/secondary screen displays with a state-manager-agnostic service API.

Repository (GitHub)
View/report issues

Topics

#dual-screen #multi-screen #android #display #presentation

License

MIT (license)

Dependencies

flutter

More

Packages that depend on secondary_screen

Packages that implement secondary_screen