Skip to main content

caption_core 1.0.0 copy "caption_core: ^1.0.0" to clipboard
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 on package:flutter/widgets.dart and package: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), configurable leadingIsInteractive / centerIsInteractive zero-delay gesture isolation, and trailing CaptionWindowControls on 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, eliminating kDoubleTapTimeout (300ms) delays on interactive buttons.
    • CaptionWindowControls: Full-height (46px × 3 = 138px × 48px) Fitts's Law window control buttons (_, [], X) with custom vector-drawn CustomPainter icons, hover/pressed states, customizable Semantics accessibility labels, Windows 11 Snap Layouts MaximizeButtonArea wrapping, and reactive WindowMaximizedEvent / WindowUnmaximizedEvent / WindowRestoredEvent / WindowResizedEvent synchronization.
    • CaptionControlColors: Immutable, theme-agnostic color token model (0 dependency on material.dart) with copyWith, value equality (==), and hashCode.
    • calculateMacOSTrafficLightY: Vertical centering formula for macOS native traffic-light buttons (18.0pt).
1
likes
160
points
87
downloads

Documentation

API reference

Publisher

verified publisherkeyscope.dev

Weekly Downloads

Custom desktop caption bar, non-interactive drag region, and Fitts's Law window controls for Flutter on Linux, macOS, and Windows.

Repository (GitHub)
View/report issues

Topics

#caption-bar #title-bar #window-controls #desktop #widget

License

Apache-2.0 (license)

Dependencies

flutter, native_core

More

Packages that depend on caption_core