caption_core 1.0.0
caption_core: ^1.0.0 copied to clipboard
Custom desktop caption bar, non-interactive drag region, and Fitts's Law window controls for Flutter on Linux, macOS, and Windows.
1.0.0 #
- Initial stable release of
caption_core(1.0.0) — custom desktop caption bar primitives built strictly onpackage:flutter/widgets.dartandpackage:native_core(^1.0.0). - Core Components:
DesktopCaptionShell: Ready-to-use cross-platform caption bar shell with automatic macOS traffic-light leading inset (collapsed in fullscreen), configurableleadingIsInteractive/centerIsInteractivezero-delay gesture isolation, and trailingCaptionWindowControlson Windows and Linux.CaptionDragRegion: Binds OS window drag-to-move, double-click maximize/restore, and Windows release-triggered secondary-click native system menu exclusively to non-interactive background areas, eliminatingkDoubleTapTimeout(300ms) delays on interactive buttons.CaptionWindowControls: Full-height (46px × 3 = 138px × 48px) Fitts's Law window control buttons (_,[],X) with custom vector-drawnCustomPaintericons, hover/pressed states, customizableSemanticsaccessibility labels, Windows 11 Snap LayoutsMaximizeButtonAreawrapping, and reactiveWindowMaximizedEvent/WindowUnmaximizedEvent/WindowRestoredEvent/WindowResizedEventsynchronization.CaptionControlColors: Immutable, theme-agnostic color token model (0dependency onmaterial.dart) withcopyWith, value equality (==), andhashCode.calculateMacOSTrafficLightY: Vertical centering formula for macOS native traffic-light buttons (18.0pt).