Files
ux/lib/ux.dart
agra 76621a4132 window: extract XWindow primitive; XNotifications stops carrying focus
The window-focus signal had no business living on the notifications
primitive — it was there because the same NotificationsPlugin happened
to observe NSApplication active/resign for its own reasons. Splitting
it into a sibling XWindow primitive (with its own WindowPlugin on
macOS, ux/window/events) lets future consumers — paused video,
deferred-work scheduling, dock badge counts — read focus state without
pulling in UNUserNotificationCenter.

XNotifications now only exposes notification I/O (show/cancel + tap +
authorization). The 'type:focus' event-channel branch is gone.
2026-05-27 14:42:39 +03:00

61 lines
2.5 KiB
Dart

/// Flutter toolkit for fluid, native-feeling UIs.
///
/// Includes [XKeyboard] for frame-accurate keyboard height tracking,
/// [BendBox] for curved layout painting, bezier curve utilities,
/// reactive primitives ([Emitter], [ValueEmitter]), a custom navigation
/// system ([XApp], [XRouter], [Screen]), and modal sheets ([Sheet]).
library;
export 'src/app_info.dart';
export 'src/bend_box.dart';
export 'src/json_extension.dart';
export 'src/bezier.dart';
export 'src/camera/camera.dart';
export 'src/camera/camera_backend.dart' show XCameraBackend, XCameraCreateResult, XCameraEvent, XCameraDeviceOrientationChanged, XCameraSessionError, XCameraSessionInterrupted, XCameraSessionResumed, XCameraDiagnostic, XCameraPreviewSizeChanged;
export 'src/camera/camera_channel.dart' show MethodChannelXCameraBackend;
export 'src/camera/camera_preview.dart';
export 'src/video/x_video_player.dart';
export 'src/video/x_video_player_backend.dart' show XVideoPlayerBackend, XVideoPlayerCreateResult, XVideoPlayerMetadata, XVideoPlayerEvent, XVideoPlayerStateChanged, XVideoPlayerSizeChanged, XVideoPlayerCompleted, XVideoPlayerError;
export 'src/video/x_video_player_channel.dart' show MethodChannelXVideoPlayerBackend;
export 'src/video/x_video_player_view.dart' show XVideoPlayerView;
export 'src/clipboard.dart';
export 'src/notifications/x_notifications.dart';
export 'src/window/x_window.dart';
export 'src/file.dart';
export 'src/gallery.dart';
export 'src/keyboard.dart';
export 'src/view_padding.dart';
export 'src/auto_map.dart';
export 'src/scanner.dart';
export 'src/url.dart';
export 'src/sensor.dart';
export 'src/functional.dart';
export 'src/crash.dart';
export 'src/log.dart';
export 'src/log_http.dart';
// Reactive primitives, lifecycle, DI, async tasks (formerly `stated`).
export 'src/core/core.dart';
// Reactive state base + builders.
export 'src/reactive/reactive.dart';
export 'src/reactive/reactive_builder.dart';
export 'src/reactive/future_reactive_builder.dart';
// Navigation (Screen, XApp, XRouter, ScreenStack, ScreenHero, …).
export 'src/navi/screen.dart';
export 'src/navi/screen_host.dart';
export 'src/navi/screen_stack.dart';
export 'src/navi/hero.dart';
export 'src/navi/sheet_screen.dart';
export 'src/navi/transitions.dart';
export 'src/navi/router.dart';
// Animations, layout, sheet, pane.
export 'src/anim/animated_color.dart';
export 'src/anim/animated_double.dart';
export 'src/anim/dock.dart';
export 'src/anim/measured.dart';
export 'src/anim/pane.dart';
export 'src/anim/sheet.dart';