secondary_screen 2.1.1
secondary_screen: ^2.1.1 copied to clipboard
A Flutter package for managing Android dual/secondary screen displays with a state-manager-agnostic service API.
Changelog #
2.1.0 #
Breaking:
flutter_blocis no longer a dependency andSecondaryScreenCubithas been removed. UseSecondaryScreenScopeandSecondaryScreenControllerinstead.
- Add
SecondaryScreenService, a singleton service that owns secondary-display state and implementsValueListenable<SecondaryScreenState> - Add
SecondaryScreenController, a convenience controller withshow,send,showEvent,sendEvent,hide, andreconnect - Add
SecondaryScreenScope, a primary-side wrapper widget that auto-initializes the service and exposes the controller through context - Add
stateChangesfor integrating the service with any state-management layer - Add
SecondaryScreenBuilderandSecondaryScreenListenerfor Flutter UI rebuilds and side effects without requiring BLoC - Move
SecondaryScreenStateinto a standalone exported model file - Update the example and README to use
SecondaryScreenScopeandSecondaryScreenController - 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 aspackage:secondary_screen/secondary_screen.dart(previously the redundantpackage:secondary_screen/secondary_screen/secondary_screen.dart) - Rename the internal source file
secondary_screen_service.dart→secondary_screen_cubit.dartto match theSecondaryScreenCubitclass (public class names are unchanged) - Rename the native MethodChannel/EventChannel IDs from
presentation_displays_plugin*tosecondary_screen*(Dart and Android kept in sync) - Rename the Android plugin package
com.example.secondary_screen→com.felixdinh.secondary_screen
1.0.1 #
- Improve README with full usage guide, API reference, and setup instructions
- Widen
flutter_blocconstraint to>=8.1.3 <10.0.0to support the latest stable (9.x)
1.0.0+1 #
- Initial release
SecondaryScreenCubitfor managing secondary display state with BLoC- Support for showing, hiding, and transferring data to secondary screens
- Auto-reconnect on display change
TransferDataModelfor structured data transfer between screens