agnostic_split_view 0.2.0
agnostic_split_view: ^0.2.0 copied to clipboard
A framework-agnostic split view for Flutter. Zero Material/Cupertino dependencies. Headless, themable, high-performance.
0.2.0 #
Performance-focused release. Adds three opt-in features for expensive pane content, plus a fix for collapsed panes being blocked by min/max size constraints.
Added #
deferResize— freeze pane layout during drag; only the divider moves at frame rate. Panes snap into place on release. Cuts UI-thread cost by ~20× on heavy content. Seeexample/BENCHMARKS.mdfor the data behind this default.isolatePanes— wrap each pane in aRepaintBoundary. Recommended for panes with continuous animations or expensive repaints. Defaults tofalsebecause layer explosion can hurt deeply nested layouts.shieldPlatformViews— mount an invisibleAbsorbPointerover the panes during drag. Prevents embeddedWebView,MapView, or video players from stealing pointer events mid-drag.shieldColor— optional tint on the shield, for user feedback that a drag is in progress.transitionDuration/transitionCurve— control programmatic transitions triggered bysetFraction(animate: true),collapseFirst(animate: true),toggleFirst(animate: true),reset(animate: true), and double-tap-to-reset.
Fixed #
- Collapsed panes no longer silently enforce
minFirstPaneSizeorminSecondPaneSize. ExplicitcollapseFirst()/collapseSecond()calls now short-circuit to zero regardless of min constraints. Mid-drag constraints are unchanged when collapse is disabled.
Changed #
SplitViewTheme.copyWith,operator ==, andhashCodenow include the new fields. Existing theme configurations continue to compile and behave identically.
Notes #
isolatePanesdefaults tofalse. Flip it on for animated or heavy panes; leave it off for deeply nestedSplitViewtrees.deferResizechanges drag UX: panes stay frozen and snap on release rather than resizing live. This is the trade-off for ~20× lower UI cost during the drag. Seeexample/BENCHMARKS.mdfor details.- No breaking changes. Existing
0.1.xcode compiles and runs unchanged.
0.1.2 #
- Fixed README image path to correctly render the demo GIF on pub.dev.
0.1.1 #
- Improved
example/lib/main.dartwith a clean, minimal, self-contained starting point. - Added demo GIF to
README.mdfor better visual documentation.
0.1.0 #
Initial release.
SplitViewwith horizontal and vertical orientation.reverseflag for all four visual arrangements.- RTL-aware directionality.
- Min/max pixel constraints on both panes.
- Collapsible panes with drag-threshold snapping.
SplitViewControllerwithsetFraction,collapseFirst,collapseSecond,expandFirst,expandSecond,toggleFirst,toggleSecond,reset.SplitDividerwith six styles (line,rounded,floating,bordered,handle,none) and four size presets (small,medium,large,custom).SplitViewTheme(anInheritedWidgetscope, not aThemeExtension) with full==/hashCode.- Zero dependencies beyond
flutter.