flutter_folderview 0.13.0
flutter_folderview: ^0.13.0 copied to clipboard
A customizable Flutter widget for displaying hierarchical data in tree and folder views with rich theming support.
0.13.0 #
- deps:
just_tooltip^0.6.0, up from^0.5.1(#185). No API was removed upstream and the Flutter3.32.0/ Dart3.8.0floor does not move.^0.5.1does not admit0.6.0, so an app that also depends onjust_tooltipraises its own constraint to^0.6.0.- What a consumer sees differently. These come from just_tooltip. Measured on a Child label tooltip, against 0.5.1:
- A dialog or page pushed over a shown tooltip hides it, and a covered tooltip does not show; upstream's
hideWhenCoveredis on by default andNodeTooltipThemedoes not expose it. A label tap whoseonNodeTapopens a dialog left the tooltip shown during the dialog and after the pop; it now opens neither time. Upstream applies this to the row card too, which was not measured here. onShowis called after the first frame the tooltip is drawn in, andonHideonly for a show whoseonShowwas called. A label tap whoseonNodeTapmakestooltipBuilderResolverreturnnullfor the Node calledonShowand showed nothing; it now calls neither.- A
show()on a tooltip that is fading out turns it back. Ashow()deferred withscheduleMicrotaskfromonNodeTapopened a closed tooltip and let an open one close; it now keeps an open one open. Ashow()made insideonNodeTapis still undone by the tap's toggle. - A per-Node controller from
controllerResolversurvives a rebuild that replaces every row in one frame. After a View Mode switch, debug failed just_tooltip's attach assertion andshow()showed nothing; it now shows the tooltip.
- A dialog or page pushed over a shown tooltip hides it, and a covered tooltip does not show; upstream's
- What a consumer sees differently. These come from just_tooltip. Measured on a Child label tooltip, against 0.5.1:
- fix: the scrollbar thumbs stay in their tracks when a
MediaQuerypadding (a safe-area inset) is aboveFolderView(#221). Flutter's scrollbars inset the thumb by the ambient padding, so the thumb was painted outside its track and its travel shrank by the padding of its axis, and a drag that started on the thumb missed it. Measured with a padding of 20, 30, 40, 50 (left, top, right, bottom) around a 300×300 view: the vertical thumb was painted 40 px left of its track, from 30 px down; a 50 px mouse drag from the top of the vertical track moved the rows to 284.7 with no padding and left them at 0 under the padding. The thumb now ignores the padding; the rows and the tooltips still see it. An app that putsFolderViewin aSafeAreasaw none of this. - fix: on iOS, a scrollbar thumb dragged to the end stops at the end and the drag goes on, as on desktop (#217). Each scrollbar's own scroll view took the platform's physics, which on iOS bounces, and Flutter lets a thumb drag pass the end on iOS and Android when the physics allow it. Measured on the iOS target with 60 Parents of 20 Children, the first one's label 40 characters long, in a 400×300 view at Scale 1.5, the thumb moved in steps of 10: the vertical scrollbar passed its end of 75316, the rows were held at the end, and the scrollbar was brought back to them, which ended the drag, so further moves moved nothing. The horizontal scrollbar passed its end of 510 (523.3 at the first step past it, 706.0 after 450 px) while the rows stayed at 510. Both scrollbars now stop at the end, the rows with them, and the drag goes on. The rows' own physics are unchanged: a touch drag or a fling on the rows still bounces on iOS.
- The scrollbars now stop at their end for every input that moves them directly, on every platform. On the iOS target, a touch drag on the vertical scrollbar's track past the end took it to 75393.9 against an end of 75316 while the rows stayed at 75316; it now stops at 75316. The same on Android when the app sets
BouncingScrollPhysicsin itsScrollBehavior, and on macOS with a trackpad pan over the scrollbar (75366.4 against 75316). - Only the ends change: a fling on a scrollbar, from a flung thumb on iOS or Android or a touch on the track, keeps the app's or the platform's physics and goes as far as before on every platform, unless it reaches the end, where it stops.
- The scrollbars now stop at their end for every input that moves them directly, on every platform. On the iOS target, a touch drag on the vertical scrollbar's track past the end took it to 75393.9 against an end of 75316 while the rows stayed at 75316; it now stops at 75316. The same on Android when the app sets
- fix: on Android, the scrollbar thumbs can be dragged and a click on a track pages the view, as on every other platform (#219). Material's
Scrollbarturns its gestures off on Android unlessinteractiveis set, and since #216 an app'sScrollbarTheme(interactive: true)aroundFolderViewno longer reached it, so an app had no way to turn them on. Measured on the Android target with 200 Parents in a 400×300 view,thumbVisibilityon, a mouse pressed 5 px from the top of the vertical track and moved down 5 × 10 px: the rows stayed at 0, with or without the app'sScrollbarTheme, and now go to 1527.8; a click near the bottom of the track then moved nothing and now pages to 1767.8. Both thumbs now take drags and both tracks take clicks on Android whatever theme the app sets. A thumb dragged to the end stops there and the drag goes on, and an expand, a collapse or a Scale change during the drag lets it go on, as on desktop and iOS. A thumb released while moving flings on, as on iOS: from the middle of the list, a drag to 4461.1 released after 48 ms settles at 4519.4. Touch on the scrollbars is unchanged: a touch drag on the thumb from 3850 still scrolls the bar like the rows (to 3800 after 50 px down, in steps of 10 or of 1), and a touch tap on the track still moves nothing. - fix: a
ScrollbarThemewidget aroundFolderViewno longer replacesFolderViewScrollbarThemeon the scrollbar thumbs (#216). On every platform but iOS, Material'sScrollbarread the nearestScrollbarThemewidget before the theme FolderView handed it, so the app's thickness, radius, thumb colour, margins and minimum thumb length painted both thumbs, and the cap that keeps the thumb insidetrackWidth(0.12.0) did not apply: on the Windows and Android targets, an app'sScrollbarThemeof thickness 1, radius 9 and green over a FolderView theme of thickness 6, radius 1 and red painted a 1.0 thick green thumb with radius 9. Both thumbs are now painted fromFolderViewScrollbarThemealone on every platform, as they already were when the app setThemeData.scrollbarTheme. - fix:
FolderViewScrollbarTheme'sthickness,radiusandthumbColornow paint both scrollbar thumbs on iOS, as on every other platform (#147). On iOS, Material'sScrollbarhanded the thumb toCupertinoScrollbar, which ignored all three: a theme of thickness 6, radius 1 and red painted a 3.0 thick thumb with radius 1.5 in Cupertino's own colour (black at 35% opacity in a light theme). The cap that keeps the thumb insidetrackWidth(0.12.0) did not apply there either. iOS no longer gets the native Cupertino thumb, including its thickening while dragged: the thumb is drawn as on desktop, with a 2 px margin. - fix: a theme change that resizes rows keeps the rows in view still, as a Scale change does (#205). A
themewith a differentrowHeight,rowSpacingorspacingTheme.contentPadding.topleft the offset where it was, so the view landed on other rows. Measured on the Windows target with 60 Parents of 20 Children in a 400×300 view, 40 per row, at 20010 (row 500,p23-c16, a quarter of it above the view):rowHeight40 → 60 orrowSpacing0 → 20 left the view at 20010, in row 333 (p15-c17) instead of 500, and now moves it to 30015;contentPadding.top0 → 30 left 20010 and now gives 20040. With the first Parent expanded in the same update, from 19200 (the same row), the row-height and spacing cases moved the view to 20400 and now move it to 30000; the top-padding case moved it to 20000 and now to 20030.- During a thumb drag on the vertical scrollbar, the change moves the view and the scrollbar together and the drag goes on: three steps reach 5964.3, and
rowHeight40 → 60 now moves both to 8946.4. - The horizontal offset is left where it is: a theme's change of width (indent, font size) need not be in proportion, so only a Scale change maps it.
- Scrolled into the top padding, the view keeps its place in the padding: with a top padding of 30 at 10,
rowHeight40 → 20 or 40 → 60 leaves the view at 10. - A theme change that leaves the row extent (
rowHeight + rowSpacing) and the top padding as they were moves nothing. - During a mouse wheel's motion, such a theme change now ends the motion, as a Scale change does. A notch of 600 from 20000 with
rowHeight40 → 60 three frames in (at 20054.6) went on to 20600, 172 rows short of where it was heading at the new row height; the view now goes to 30081.9, the rows of that frame, and the rest of the notch is lost.
- During a thumb drag on the vertical scrollbar, the change moves the view and the scrollbar together and the drag goes on: three steps reach 5964.3, and
- fix: an expand or collapse above the view in the same update as the view changing height lands on the new end of the list (#210). The move that keeps the rows in view still was clamped to the end the list had in the old height, so a taller view put it past the new end. Measured on the Windows target with 60 Parents of 20 Children in a 400 px wide view; unless said otherwise, the first Parent collapsed, then expanded in the same update as the height change:
- A thumb drag on the vertical scrollbar at the end (49300), the height 300 → 350: the view went to 50100 and the scrollbar to 50050, the new end, and the drag ended in the next frame, so further moves moved nothing. Both now go to 50050 and the drag goes on. The same with two Parents expanded at once.
- A touch drag held near the end (49270), the height 300 → 500: the view stayed at 50070 against an end of 49900 until the finger was lifted. It now goes to 49900, and the drag goes on from there.
- A mouse wheel's motion near the end, the height 300 → 500: the view was drawn at 50045.5 for one frame, past the end of 49900, before the motion brought it back. It now goes to 49900 in that frame.
- A collapse at the end works the same way: a thumb drag at the end (50100) with the first Parent collapsed and the height 300 → 350 left the view at 49300 and the scrollbar at 49250, the new end; both now go to 49250 and the drag goes on.
- A change that also takes the horizontal scrollbar away (new
datawithout the one wide label) gives the view the scrollbar's 16 px back, and lands on the new end too: from the end with the scrollbar there, the view went 16 past the new end, and now goes to it. - A shorter view keeps the rows still as before, when the end allows. A change that cannot keep the rows still, the first Parent expanded and the last collapsed at the end with the height 300 → 250, left the view at 49300, 50 short of the new end; it now goes to 49350.
- fix: a Scale change while a scrollbar's thumb is dragged no longer ends the drag (#208). The move that keeps the rows in view still ended the drag, so the rest of it moved nothing. Measured on the Windows target with 60 Parents of 20 Children in a 400×300 view, every Parent expanded, the thumb pressed at the start of its track and moved in steps of 10: on the vertical scrollbar, three steps reach 5964.3 and Scale 1.0 → 1.5 moves the view to 8946.4, where it stayed for three more steps; it now ends at 17928.6, where six steps at Scale 1.5 end. From Scale 1.5, three steps reach 8964.3 and Scale 1.5 → 1.0 moves the view to 5976.2, where it stayed; it now ends at 11928.6. On the horizontal scrollbar, with one label of 40 characters, three steps reach 45.7 and Scale 1.0 → 1.5 moves the view to 68.3, where it stayed; it now ends at 136.5. The Scale change moves the view to the same offset as before, and each scrollbar stays on the same offset as the rows.
- As with an expand or collapse (#203), the drag goes on from where the pointer is on the track, mapped onto the content at the new Scale.
- When no thumb is dragged, a Scale change moves the view as before. During a mouse wheel's motion it still ends the motion.
- fix: expanding or collapsing a Parent above the view while the vertical scrollbar's thumb is dragged no longer ends the drag (#203). The move that keeps the rows in view still ended the drag, so the rest of it moved nothing. Measured on the Windows target with 60 Parents of 20 Children in a 400×300 view, the thumb pressed near the top and moved down in steps of 10: three steps reach 5869.0 and three more 11738.1. With the first Parent expanded (20 rows of 40) after the first three, the view moved to 6669.0 and stayed there; it now ends at 11928.6. Collapsing it the same way from 5964.3 moved the view to 5164.3 and stayed there; it now ends at 11738.1. The rows in view stay still in the frame of the change, and the vertical scrollbar stays on the same offset as the rows.
- The drag goes on from where the pointer is on the track, not by adding each move to the offset. Flutter's scrollbar maps the pointer's distance from where the drag started onto the content as it is now, so the next step brings the thumb back under the pointer: after the expand, the three further steps move the view 5259.5, where they move it 5869.0 with no change. When that place would be behind the view, each step is added to the offset instead: expanding ten Parents at once the same way, from 13011.9 after the change, the three further steps move the view 5964.3, as three steps do from the top with every Parent expanded.
- The same holds for a thumb that is pressed and has not moved yet, or is pushed against the end: at the end (49300), the thumb pushed down and the first Parent expanded moved the view to 50100 and ended the drag; the drag now goes on from there.
- A touch drag on the scrollbar (Android, iOS) and a trackpad pan over it go on the same way: on Android, a touch drag 50 further after an expand that moved the view to 20850 stayed at 20850 and now ends at 20900. A fling that follows a drag on the scrollbar still ends where the rows stay.
- When nothing is scrolling, the change moves the view as before, and a tap on the track still ends its animation where the rows stay.
- fix: a Scale change and an expand or collapse above the view in one update keep the rows in view still (#202). The Scale change was mapped from the offset before the rows were added or removed, so their move was lost. Measured on the Windows target with 60 Parents of 20 Children in a 400×300 view, from 20000 (row 500, 40 per row): expanding the first Parent (20 rows) with Scale 1.0 → 1.5 left the view at 30000, the rows in view moving off screen, and now moves it to 31200; collapsing it the same way left 30000 and now gives 28800. From 30000 at Scale 1.5, the expand with Scale 1.5 → 1.0 left 20000 and now gives 20800. Expanding two Parents at once with Scale 1.0 → 1.5 left 30000 and now gives 32400. A Scale change or an expand or collapse alone is unchanged. During a mouse wheel's motion, such an update still stops the motion.
- fix: expanding or collapsing a Parent above the view during a mouse wheel's motion no longer loses the rest of the notch (#195). The move that keeps the rows in view still ended the motion. Measured on the Windows target with 60 Parents of 20 Children in a 400×300 view and the default
WheelMotion.spring(): at 20000, a notch of 600 settles at 20600; with the first Parent expanded (20 rows of 40) three frames into the motion, it settled at 20854.6 and now settles at 21400. Collapsing it the same way settled at 19254.6 and now at 19800. A notch to the end with the expand during it settled at 49827.3 and now at the new end, 50100. The rows in view stay still in the frame of the change, and the vertical scrollbar ends on the same offset. Expanding two Parents at once the same way settled at 21654.6 and now at 22200. When nothing is scrolling, the change moves the view as before.- Also fixed: a drag or a fling goes on through such a change, whatever
wheelMotionis. A touch drag of 80 up from 20000, the first Parent expanded, then 100 more ended at 20880, the rest of the drag moving nothing; it now ends at 20980. A trackpad drag the same way ended at 20900 and now at 21000. A fling that settles at 20827.4 alone, with the expand three frames in, settled at 21042.2 and now at 21627.4. - A Scale change during a motion still ends the motion.
- Also fixed: a drag or a fling goes on through such a change, whatever
- chore:
flutter analyzepasses on Flutter 3.50, which deprecatespackage:flutter/material.dart(#198). The package keeps that import, with// ignore: deprecated_member_useabove each one; every other deprecation is still reported.FolderViewstill reads the app'sThemefrompackage:flutter/material.dart, so an app migrated topackage:material_uiwraps it inMaterialUiCompatibilityBridgeto have its theme applied (README, Theming). Why the move tomaterial_uiwaits: ADR-0006. The Flutter and Dart floors do not move. - fix: a relayout after expanding or collapsing a Parent above the view no longer moves the rows again (#193). When only the space around the same
FolderViewchanged, the last expand or collapse was applied once more each time. Measured on the Windows target with 60 Parents of 20 Children in a 400×300 view, with theFolderViewinstance held fixed: at 20000, expanding the first Parent moved the view to 20800, as it still does; changing only the view's height to 310 then moved it to 21600, and to 320 to 22400. Collapsing it from 20000 moved the view to 19200, and the height change to 310 then moved it to 18400. Both now stay where the expand or collapse left them. An enclosing widget that builds a newFolderVieweach time was not affected. - fix: at the end of the list, expanding a Parent above the view keeps the rows in view still (#176). The new offset was clamped to the old end of the list, so the rows in view moved down. Measured on the Windows target with 60 Parents of 20 Children in a 400×300 view, expanding the first Parent (20 rows of 40): at the end (49300) the view stayed at 49300 and now moves to the new end, 50100; 100 from the end (49200) it stayed at 49300 and now moves to 50000. 1000 from the end it was already right. The vertical scrollbar ends on the same offset as the rows. A collapse is unchanged.
- fix: with the horizontal scrollbar present, a list that overflows by less than the scrollbar's track has a vertical scrollbar (#177). The vertical scrollbar was decided against the whole height, but the list stops above the horizontal track (
FolderViewScrollbarTheme.trackWidth). Measured on the Windows target with 8 rows of 40 under a row wider than the view (content height 320, track 16): at view height 324 the list scrolled by 12 with no vertical scrollbar, at 335 by 1 with none; both now have one. At 336 and above the list does not scroll and there is none, as before. Without the horizontal scrollbar, nothing changes. - chore: the
flutter_smooth_wheel_scrollfloor is now^0.1.7. In 0.1.7,ScrollbarControllerno longer throwsScrollController attached to multiple scroll views(in a release build,Bad state: Too many elements) in a frame where the view's scroll view is replaced while the scrollbar lays out.FolderViewwas not seen to reach that frame since #171 kept itsListenermounted. The Flutter and Dart floors do not move. - fix: Ctrl/Cmd+tilt wheel no longer proposes a larger Scale (#174). The direction was read from the vertical delta alone, so a wheel with no vertical movement proposed
scale + scaleStepgoing either way: at Scale 1.0, a sideways notch of 60 and one of -60 each proposed 1.05. With the modifier held, a wheel with no vertical movement now proposes nothing andonScaleChangedis not called. Vertical and diagonal wheels are unchanged, following the sign of the vertical delta. WhileblockModifierScrollis in effect a tilt still does not scroll, so Ctrl/Cmd+tilt now does nothing. - fix: when new data makes the content narrower than the current horizontal offset, the rows move to the new end with the scrollbar (#179). Scrolled to the end at 800, data that moved the end to 637.5 left the scrollbar at 637.5 and the rows at 800 until the next input. The rows now follow one frame after the change.
- fix: the horizontal scrollbar keeps its offset when the vertical one appears or disappears (#175). Scrolled sideways by 200, collapsing every row so the vertical scrollbar went away left the rows at 200 and the horizontal scrollbar at 0, and a sideways notch over it then did nothing. Both now stay at 200.
- fix: a wheel after a bulk expand past the list's old end moves the scrollbar with the rows (#178). The scrollbar stayed where the expand left it: with
wheelMotion: nulla notch of 120 moved the rows to 98880 and left the scrollbar at 99000 until the next input; with a spring it lagged one frame. The body and scrollbar mirror each other with a one-shot guard against echo, and the guard was armed even when the mirrored jump moved nothing. - fix: a row's label tooltip and its controller stay with their Node when the rows above or at it change (#172). Rows were matched by position, so the State of a removed row passed to the Node that took its place.
- With
enableTap, anonNodeTapthat removed the tapped Child showed the next Child's tooltip (tip c2for a tap on c1); it now shows none. A tap beside a Parent's label that collapsed it showed another Node's tooltip; it now shows none. - With a per-Node
controllerResolver, removing a row, collapsing a Parent or inserting a row above threwassert(_target == null)in debug, and that controller'sshow()then showed nothing. It now throws nothing and shows. A rebuild that replaces every row in one frame, such as a View Mode switch or the horizontal scrollbar appearing, still throws it. - A double tap whose first tap removed or moved the row no longer fires
onDoubleNodeTapon the Node that took that spot: a tap on c1 that removed it, then a tap at the same spot, gavetap c1, double c2and now givestap c1, tap c2. The double tap now follows the Node: if the first tap moved c1 and the second taps c1 where it now is, that is a double tap on c1. - What a consumer sees differently. A Node's
idis now its identity: no two Nodes in one input tree may share one. Two Nodes with the sameidproduce undefined visible behavior: in a debug test with one sharedidunder two Parents, collapsing the first Parent asserted and left the whole list empty. Rendering many thousands of expanded rows costs a little more per rebuild near the end of the list: about 3 ms per rebuild with 20,000 rows, measured in a widget test. NodeTooltipTheme.onHideandenableTapnow document what is unchanged:onHideis not called when a shown tooltip leaves the tree, whether its row goes ortooltipBuilderResolverstops returning content for it (#182), ashow()insideonNodeTapis undone by the label tap's toggle, and a tooltip opened by a tap stays open over a dialog or page thatonNodeTapopens.
- With
- fix: with
NodeTooltipTheme.enableTap, a tap on a label toggles the tooltip and reaches the row (#134). The tooltip used to take the tap, soonNodeTapdid not fire, a Child was not selected from its label, and a Folder or Parent did not toggle from its label. It now usesTooltipTap.observefrom just_tooltip 0.5.0; the floor is already^0.5.1, so it does not move.- What a consumer sees differently. With
enableTapon, a tap on a label also firesonNodeTap, and a double tap on a Child label firesonDoubleNodeTapas beside the label does. Each tap toggles the tooltip, so a click on one open from a hover closes it.onNodeTapcannot tell a label tap from a tap beside the label, so an app that relied on the label tap not reaching the row has to turnenableTapoff. WithenableTapoff, nothing changes. - A screen reader's tap no longer opens the tooltip. It goes to the row. The
messageis read with the label. When a builder supplies the content nothing is read, and a screen reader's tap can no longer open it.
- What a consumer sees differently. With
- feat: a mouse wheel over a scrollbar moves the view with
wheelMotion, as it does over the rows (#168). Measured with a 400 ms spring: one 60 px notch over the vertical scrollbar moved the view 60 px in the first frame, and now moves it 0 in that frame and settles at 60. No new argument.- Also fixed: a notch over a scrollbar during a motion started over the rows no longer loses the rest of that motion. 120 px over the rows, then 120 px over the scrollbar during the motion, settled at about 131 and now settles at 240.
- Also fixed: a thumb press or a track tap during a wheel's motion now stops the motion. Before, the motion cancelled the drag or the tap and the view ran on to the wheel's target.
- What a consumer sees differently. A widget test that wheel-scrolls over a scrollbar and reads the offset after one frame needs to pump until settled. With
wheelMotion: null, nothing changes. - The hand-off is
ScrollbarControllerfrom flutter_smooth_wheel_scroll, so that dependency's floor is now^0.1.6(#171). The Flutter and Dart floors do not move. A notch during a track tap's animation moves on from where the view stands: a notch of 60 two frames after a track tap settles at 108.7, with both on the same offset.
- fix: with
rowSpacingabove 0, the vertical scrollbar agrees with the rows (#157). The height behind it countedrowSpacingonce less than the list has. AtrowSpacing8 with 500 rows, a wheel over the scrollbar stopped at 23756 and now reaches 23764 with the rows. A list overflowing its view by less thanrowSpacingnow has a vertical scrollbar. - fix: changing whether the modifier scroll is blocked at runtime keeps the scroll offsets (#171). Giving
onScaleChangeda handler where it had none, removing one, or changingblockModifierScrollrebuilt the view's content, so a view scrolled to 300 went back to 0. It now stays at 300. - fix: while the modifier scroll is blocked, Ctrl/Cmd+wheel over a scrollbar whose thumb has faded in no longer scrolls (#169). A pointer resting over the view is in this state. A notch of 120 over either scrollbar proposed a Scale and scrolled the view by 120; it now proposes the Scale and moves nothing, as 0.12.0 described.
- fix: Shift+wheel over the horizontal scrollbar scrolls sideways whether or not its thumb has faded in (#169). Measured on the Windows target with a vertical notch: once the thumb had faded in, a Shift+wheel notch of 60 moved nothing; it now moves the view 60 sideways, with
wheelMotion. Over the rows and the vertical scrollbar, Shift+wheel is unchanged.
0.12.0 #
- feat: a mouse-wheel notch over the view animates to its target instead of jumping (#100). The main vertical and horizontal scroll controllers are now
SmoothScrollControllers fromflutter_smooth_wheel_scroll, moving asWheelMotion.spring(): 400 ms, no bounce. The scrollbars follow the list on every frame of a motion. Trackpad scrolling, dragging, the scrollbar and programmatic jumps behave as before.- What a consumer sees differently. After a wheel notch, the scroll offset reaches its target over several frames, not at once. A widget test that wheel-scrolls and reads the offset after a single
pumpnow has to pump until the motion settles. - The Scale Modifier + wheel anywhere over the view still proposes a Scale and, while
blockModifierScrollis in effect, does not scroll.
- What a consumer sees differently. After a wheel notch, the scroll offset reaches its target over several frames, not at once. A widget test that wheel-scrolls and reads the offset after a single
- feat:
FolderView.wheelMotionchooses how the wheel moves the view (#101). The default isWheelMotion.spring(). Other options areWheelMotion.spring(duration:, bounce:),WheelMotion.curve(duration:, curve:)with anyCurve, andWheelMotion.lerp(timeConstant:).nullmoves the view at once on every notch, as before 0.12.0.- It can change at runtime. The next notch uses the new motion, and the scroll position is kept.
WheelMotionis re-exported, so no import offlutter_smooth_wheel_scrollis needed. How far a notch travels is app-wide, throughSmoothWheelBindingin that package, and this one does not install it.
- fix: after horizontal scrolling, a row takes taps and hovers across its whole visible width (#136). The rows were painted shifted, but hit testing stopped at the first viewport-width of the row. Past that point a tap fired no
onNodeTapand selected nothing, and a hover raised no row card. Scrolled to the end, the visible part of every row was dead. Reproduced in a 400 px view scrolled by 300: a tap at x 320 inside the row worked, and at 500 it did nothing.- Also fixed: a row's widget state is no longer rebuilt each time the horizontal offset leaves or returns to 0. Before, a stateful node icon was created again on every such crossing.
- What a consumer sees differently. Taps, double taps, secondary taps, hovers and tooltips now reach the rows wherever they are visible after a horizontal scroll. Painting and layout are unchanged.
- fix: while the modifier scroll is blocked, Ctrl/Cmd+wheel over a scrollbar no longer scrolls (#114). Reproduced in a 400 px view with
onScaleChangedset: one 300 px Ctrl+wheel notch over the vertical scrollbar proposed a Scale and scrolled the view by 300. A sideways notch over the horizontal scrollbar scrolled it too. Now the notch proposes the Scale and moves nothing, as it already did over the rows.- What a consumer sees differently. Ctrl/Cmd+wheel zooms only, wherever the pointer is over the view. A wheel over a scrollbar without the modifier still scrolls at once. Dragging a thumb works with or without the modifier held. With
blockModifierScroll: false, nothing changes.
- What a consumer sees differently. Ctrl/Cmd+wheel zooms only, wherever the pointer is over the view. A wheel over a scrollbar without the modifier still scrolls at once. Dragging a thumb works with or without the modifier held. With
- fix: with
rowSpacingabove 0, the connector line meets the row at its content's centre (#118). The horizontal stub, and a last child's vertical end, were drawn atrowHeight / 2, but each row isrowHeight + rowSpacingtall with its content centred in it. AtrowHeight40 androwSpacing10, the stub sat at y 20 against a label centred at y 25. It is now at 25. WithrowSpacing0 nothing changes.rowSpacing's documentation now says what it is: extra height added to every row, not an empty gap between rows.
- fix:
ExpandIconTheme.colorandexpandedColortake effect onlight()anddark()(#120). Both factories gave the chevronIconits own grey, and anIconwith its owncolorignores the ambientIconThemethe two fields are applied through. Probed withcolorred andexpandedColorgreen onlight(): every chevron stayed0xFF616161. Now collapsed rows are red and expanded rows green.- What a consumer sees differently. The default look is the same:
light()'s chevron is stillColors.grey.shade700,dark()'sColors.grey.shade400. But the grey moved:expandIconTheme.widgetis nowIcon(Icons.chevron_right, size: 20)with no colour, andexpandIconTheme.coloris the grey rather thannull. Code that reads either value sees the new one.expandedColoris stillnull, so expanded rows takecolor. - A custom
widgetwith its own colour keeps it, as before. The two fields' documentation now says they colour only a widget without a colour of its own.
- What a consumer sees differently. The default look is the same:
- fix: a label from a
labelResolveris measured. Content width was measured fromnode.labelwhile the row drew the resolved label, so a resolved label longer than the raw one was cut with an ellipsis where the view should have scrolled horizontally. Measurement and rendering now read the label from one place (RowMetrics.label), the way they already shared the text style. - fix: content width is re-measured when the theme reaches the view from an ancestor
FolderViewTheme, or when the ambientbodyMediumchanges. Only a newtheme:argument used to trigger it, so a font change from either source left rows ellipsized at the old width. - fix:
onSecondaryNodeTapfires on Folder and Parent rows, not only on Child rows. ADR-0003 names it as the way to track a focused container, which are not selectable.onDoubleNodeTapremains Child-only, and both callbacks now say which tiers they fire on. - fix: without
onDoubleNodeTap, every tap on a Child row firesonNodeTap(#95). A Child row used to keep a double-tap window with nothing behind it, so a second tap withinChildNodeTheme.clickInterval(300 ms by default) fired nothing. Reproduced at 50 ms and at 250 ms, an ordinary pace for tapping a Child off and on again. WithonDoubleNodeTapset, nothing changes: a double tap still firesonNodeTapon the first tap andonDoubleNodeTapon the second. - BREAKING:
NodeTooltipTheme.controlleris replaced bycontrollerResolver, aJustTooltipController? Function(Node<T>)(#133). A Tier'stooltipThemereaches every Node of the Tier, so one controller was attached to every built label'sJustTooltip. just_tooltip lets a controller drive one tooltip: with two Nodes in the Tier, debug failedThis JustTooltipController is already attached to a tooltip, and release drove whichever label was built last. The resolver gives each Node its own controller.- What a consumer sees differently. Code that sets
controllerno longer compiles. Migratecontroller: ctocontrollerResolver: (node) => node.id == 'x' ? c : null, or to a map,(node) => controllers.putIfAbsent(node.id, JustTooltipController.new). Return the same controller for a Node on every call, and never one controller for two Nodes. A controller drives its label while the row is built; ashow()made before that is applied once it is. As before, just_tooltip shows one tooltip at a time.
- What a consumer sees differently. Code that sets
- fix: a style returned by
textStyleResolveris scaled, on all three tiers, and so is one returned byChildNodeTheme.selectedTextStyleResolver(#127). Each tier'sscalemultiplied itstextStylebut passed the resolvers through as functions, so a resolved style kept its own size. At Scale 2, a Folder withtextStyle: TextStyle(fontSize: 16)drew 32 px, and one whose resolver returned the same style drew 16 px. Now both draw 32 px. A resolved style follows the rule of the field it stands in for:textStyle's (an unset size starts from the ambientbodyMedium) orselectedTextStyle's (an unset size stays unset).- What a consumer sees differently. At any Scale other than 1, labels styled by a resolver grow and shrink with the rest of the row, and are measured at that size. A resolver that returns
nullstill falls back to the scaled field. At Scale 1 nothing changes, andscale(1.0)still returns the theme itself.
- What a consumer sees differently. At any Scale other than 1, labels styled by a resolver grow and shrink with the rest of the row, and are measured at that size. A resolver that returns
- feat: in debug builds, a
FolderViewThemeof the wrong type is reported (#124).FolderViewTheme.of<T>andmaybeOf<T>look upFolderViewTheme<T>by exact type. So an untypedFolderViewTheme(data: FlutterFolderViewTheme.dark()), which is aFolderViewTheme<dynamic>, is not found by aFolderView<String>, and the view silently fell back tolight(). Now, when the lookup misses and aFolderViewThemeof another type is above, adebugPrintnames both types and the fix, once perT.- What a consumer sees differently. Nothing in release builds, and nothing for a correctly typed tree. The lookup and its fallback are unchanged.
FolderViewTheme.debugResetTypeMismatchWarnings()(@visibleForTesting) clears the once-guard. The class dartdoc and the README now show the typed form.
- What a consumer sees differently. Nothing in release builds, and nothing for a correctly typed tree. The lookup and its fallback are unchanged.
- fix: a scrollbar thumb stays inside its track box whatever
thicknesssays (#122). Withthickness: 20andtrackWidth: 8, the vertical thumb was painted from x = −12 (Android) or −14 (desktop) in the 8 px bar, so 12 to 14 px of it lay over the rows. The thumb is now painted at what fits:trackWidthless Material's cross-axis margin, which is 0 on Android and 2 elsewhere.- What a consumer sees differently. Only a
thicknessthat did not fit changes. The theme keeps the value it was given. With the defaults (thickness12,trackWidth16), nothing changes.
- What a consumer sees differently. Only a
- BREAKING:
FolderViewScrollbarTheme.trackVisibilityis removed (#122). It turned on the MaterialScrollbar's own track, painted inside the bar's box in Material's faint colour, never intrackColor. So a bar had two different tracks under one name. The box styled bytrackColor,trackWidthandtrackRadiusis now the only track.- What a consumer sees differently. Code that sets the field, in the constructor or in
copyWith, no longer compiles: delete the argument. With the defaultfalse, nothing changes at runtime. Withtrue, the faint inner track is gone. The theme's==,hashCodeandtoStringno longer include it.
- What a consumer sees differently. Code that sets the field, in the constructor or in
- BREAKING:
FlutterFolderViewTheme.animationDurationis removed (#116). Nothing has read it since the switch to a virtualized flat list, and expand and collapse are not animated. The tooltip themes' ownanimationDurationfields are unaffected.- What a consumer sees differently. Code that sets the field, in the constructor or in
copyWith, no longer compiles: delete the argument. Nothing changes at runtime, and the theme's==,hashCodeandtoStringno longer include it.
- What a consumer sees differently. Code that sets the field, in the constructor or in
- BREAKING:
NodeTooltipTheme.hideOnEmptyMessageis removed (#131). It never had an effect throughFolderView. A label tooltip with no builder and an empty ornullmessage is not built at all, sofalsecould not bring up an empty tooltip. With a builder, there is always content.- What a consumer sees differently. Code that sets the field, in the constructor or in
copyWith, no longer compiles: delete the argument. Nothing changes at runtime.
- What a consumer sees differently. Code that sets the field, in the constructor or in
- BREAKING: minimum Flutter is now
3.32.0(Dart3.8.0), up from3.13.0(Dart3.1.0) (#100).- What a consumer sees differently. On Flutter 3.13–3.31 this version does not resolve, and
pubstays on the previous version. No class, method or field changed because of the floor. - Why. This package now depends on
flutter_smooth_wheel_scroll^0.1.3, which declares Flutter>=3.32.0/ Dart^3.8.0. It usesSpringDescription.withDurationAndBounce(flutter#164411), and 3.32.0 is the first stable release to carry it. The floor is the max of what the dependencies demand:max(3.13, 3.32). - The source was reformatted, with no behaviour change.
dart formatpicks its style from the package's language version, and from Dart 3.7 that is the tall style. That reformat is a separate, mechanical commit.
- What a consumer sees differently. On Flutter 3.13–3.31 this version does not resolve, and
- deps:
just_tooltip^0.5.1, up from^0.4.4. It declares the same Flutter3.32.0/ Dart3.8.0floor this package already has, so the floor does not move.NodeTooltipTheme.enableTapis unchanged.JustTooltip's ownenableTapis deprecated upstream, so the label tooltip now passestap: TooltipTap.claimfortrueandTooltipTap.noneforfalse, which upstream documents as identical.- What a consumer sees differently. These come from just_tooltip, and both tooltips get them unless noted:
- A screen reader reads a label tooltip's
messagealong with the label. AtooltipBuilderlabel tooltip and the row card are not read. - Escape closes the tooltip that was shown most recently.
- A tooltip draws with the
Theme,Directionality,DefaultTextStyleandMediaQueryaround theFolderView, not the app-level ones. - A label tooltip is
interactive: falseby default, and its body now lets the pointer through. A tap on it reaches the row underneath, and anything clickable in its content can no longer be clicked. Setinteractive: truefor content that should be reachable.
- A screen reader reads a label tooltip's
- A tap on the label with
enableTapstill opens the tooltip and still takes the tap from the row. just_tooltip's newTooltipTap.observemode, which would let the row receive the tap too, is not used (#134).
- What a consumer sees differently. These come from just_tooltip, and both tooltips get them unless noted:
- docs: the row card's fixed pointer anchor is explained by what it actually prevents (#138). The
rowTooltipBuilderandRowTooltipThemedartdocs and the README said anchoring to the row's rect would aim off screen once the view scrolls horizontally. Since just_tooltip 0.4.2, a rect anchor aims at the visible part of the rect, so a wide row's card would open at the view's centre: on screen, but not where the user is looking. That is the reason now given. The anchor is unchanged and still not configurable. No behaviour change. - docs:
blockModifierScroll: falsealso turns zoom-by-wheel off (#112).onScaleChangedis called only while the modifier scroll is blocked, so withfalseCtrl/Cmd+wheel scrolls and proposes no Scale. TheonScaleChanged,scaleStepandblockModifierScrolldartdocs, the README andGLOSSARY.mdnow say so, and the README gives all six cases. The README's default was also wrong: it isnull, followingonScaleChanged, nottrue. Its custom-zoom recipe withisScaleModifierPressed()now passesblockModifierScroll: true. Without it, the same wheel event zoomed and also scrolled the view. No behaviour change. - docs:
onNodeTapandonDoubleNodeTapstate that a Ctrl+tap is always a single tap.
0.11.2 #
- deps:
just_tooltip^0.4.4(#71). Unlike0.11.1's bump, this one is not documentation of intent: raising the floor is what carries the fix to a project that already depends on us.pubdoes not re-resolve a lockfile that still satisfies its constraint, so^0.4.3left an installed0.4.3exactly where it was — measured, by pinning this repo's own lock to the floor:pub getmoved it to0.4.4under^0.4.4and not at all under^0.4.3. No new SDK bound; the Flutter3.13.0floor is still0.4.2's. - docs:
just_tooltip0.4.4narrowed its nesting-suppression rule — the innermost tooltip under the pointer that has something to draw now wins, where before having nothing to draw was enough to take an ancestor's place. Two places stated the old rule as a fact about the package:FolderView's internal row-card dartdoc, which ships to the API docs, and the characterisation-test header that pins the behaviour. Both now state the rule that 0.4.4 actually implements.- No behaviour changes here, and none is claimed.
flutter_folderviewnever builds an empty tooltip — a Node with no label tooltip content is not wrapped, and nor is a row whoserowTooltipBuilderreturnsnull— so the new qualifier can never bite, and the existing tests pass against0.4.4untouched. The README's account of the two tooltips describes those guarded tooltips rather than the package's rule, and remains correct as written.
- No behaviour changes here, and none is claimed.
0.11.1 #
- fix: a row card no longer dies when the cursor returns to the row from the card itself (via
just_tooltip 0.4.3). Leaving the card armed a 100 ms hover bridge that re-entering the row never cancelled: it fired unseen, faded the card out, and a pointer already inside the row sends no further enter event to revive it. The card vanished about 250 ms after the cursor came home — a quarter second removed from its cause, and easy to trigger, since an interactive card anchored at the pointer is drawn right beside it. Reproduced against0.4.2before the bump: the card was gone 450 ms after the round trip and never returned. - deps:
just_tooltip^0.4.3. Changes no API and no SDK bound —0.11.0's^0.4.2constraint already resolved it, so this documents intent. The Flutter3.13.0floor is0.4.2's and unchanged. - docs: the README now states the minimum Flutter version beside the install snippet. It never did, while
0.11.0raised it from3.10.0.
0.11.0 #
- feat:
FolderView.rowTooltipBuilder(#44) — a card shown while the pointer is anywhere over a Node's rendered row. Returnnullfor a Node that should not have one. It is declared once on theFolderView, not per Tier, because it explains the Node, where the existingNodeTooltipThemetooltip attaches to the icon-and-label content and explains the label. Both can be enabled at once.- The card is anchored at the pointer, and this is not configurable. A row is laid out at the tree's content width, not the viewport's, so anchoring to the row's rect would aim at a centre that leaves the screen as soon as the view scrolls horizontally.
- feat:
FolderView.rowTooltipTheme— aRowTooltipThemecovering the card's presentation and behaviour:interactive,waitDuration,showDuration,enableHover,direction,alignment,offset,crossAxisOffset,screenMargin, the animation fields,onShow/onHide, andsurface. Without it the card was frozen atjust_tooltip's defaults — shown the instant a pointer crossed a row, with no way to delay it or to stop it holding the cursor.surfacedefaults toJustTooltipTheme.bare(), so the tooltip draws no chrome around a card that draws its own. Give it a realJustTooltipThemewhen the builder returns unadorned content.interactivedefaults totrue. The card is anchored at the pointer, so it is drawn beside the cursor and a small movement enters it; and its contents are the kind a user may want to reach. The label tooltip's default is the opposite, and deliberately so — it explains text you read, then leave.- The anchor is the one knob the theme does not expose. See above.
- The two divide the row. Only one tooltip is ever visible — the innermost under the pointer — and a label tooltip claims exactly the glyphs it explains. The row card takes everything else: the indent, the icon, the expand chevron, the space beside a short label. Enable both.
- The label tooltip now wraps the label's
Textrather than the icon-and-labelRow. It previously covered the icon, and — becauseFlexiblegrows a label to fill its row, and a row is as wide as the tree's longest label — on the widest row it covered the entire row, leaving that Node's card unreachable. Matchesflutter_table_plus, where a cell's text tooltip wraps the bareText: a text tooltip belongs to the glyphs. TooltipAnchor.childtherefore now centres a label tooltip on the glyphs rather than on the icon-plus-glyphs box, moving it right by half the icon's width.
- The label tooltip now wraps the label's
- feat:
NodeTooltipTheme.anchor(#42). A node's tooltip attaches to its icon-and-label content, and a long label fills its row — so a tooltip anchored to that rect appears at the row's centre, which can be far from where the user is actually pointing, and outside the view entirely once the tree scrolls horizontally.anchor: TooltipAnchor.pointerkeeps the same hover region but places the tooltip at the cursor.TooltipAnchoris now re-exported. Defaults toTooltipAnchor.child, the behaviour shipped in0.10.2, so existing tooltips are unchanged.- The anchor is captured when the tooltip is shown and does not follow the pointer, so
interactivetooltips stay reachable. Tap-triggered tooltips anchor at the tap; acontroller-driven show with no pointer present falls back to the label's rect. - Against a point there are no target edges to align to, so under
TooltipAnchor.pointerthealignmentfield selects which of the tooltip's own edges lands on the pointer. anchordoes not widen the hover region — a short label leaves the space to its right raising no tooltip under either anchor. For that, userowTooltipBuilderabove.
- The anchor is captured when the tooltip is shown and does not follow the pointer, so
- note:
TooltipRegistry(added injust_tooltip 0.3.0) is deliberately not re-exported.rowTooltipBuilderis the first place this package nests one tooltip inside another, and it needed no registry:just_tooltip 0.4.0suppresses an ancestor whenever a descendant holds the pointer, regardless of registry. Exposing it would grow the public surface for a use case — isolating aFolderView's tooltip group from the host app — that has not yet appeared. - deps:
just_tooltip^0.4.2, which raises the minimum Flutter to3.13.0(Dart3.1.0), up from3.10.0. Its ancestor clip walk readsRenderObject.parent, which wasAbstractNode?— a type with nodescribeApproximatePaintClip— until Flutter 3.13.flutter_folderviewdeclared>=3.10.0while its^0.4.0constraint already resolved0.4.2, so that floor had become a promise it could not keep. - fix: a label tooltip is no longer painted outside the
FolderView(#47). When a tree scrolls horizontally, a long label's rect extends past the view, andTooltipAnchor.childaimed at its centre — a point nobody could see.screenMarginnever objected: it confines the tooltip to the enclosingOverlay, usually the whole app.just_tooltip 0.4.2now targets the visible part of a clipped child, so the tooltip lands inside the view. Pre-existing; every version with tooltips had it.- Two further
just_tooltipfixes come along: a visible tooltip now re-aims when its child moves (scroll, resize, insertion above it) and hides once the child is clipped away entirely; and the target rect now follows the child's paint transform, so aTransform.scalebetween a node and theOverlayno longer mis-sizes it.
- Two further
0.10.2 #
- deps: Bump
just_tooltipto^0.4.0. Not breaking forflutter_folderview: nothing was removed fromjust_tooltip's API, the re-exportedJustTooltipControlleris unchanged, and its one behaviour change — a nested tooltip now suppresses its ancestors — cannot be reached from here, sinceFolderViewwraps exactly oneJustTooltipper node label and never nests them. Node tooltips gainjust_tooltip's fix for tooltips laid out in anOverlaythat does not fill the window from its origin: under a nestedNavigator, an insetOverlay, or an embedded Flutter view, a node's tooltip was displaced by the Overlay's offset and had its auto-flip andscreenMarginclamping measured against the wrong bounds. Placing aFolderViewinside such a host now positions its tooltips correctly. Noflutter_folderviewAPI changed. - note:
just_tooltip 0.4.0addsTooltipAnchor, which anchors a tooltip at the pointer instead of the child's rect. It is deliberately not re-exported yet:NodeTooltipThemehas noanchorfield, so the enum would be visible but unusable. Exposing it is aflutter_folderviewfeature decision, tracked in #42 along withTooltipRegistry, whichjust_tooltip 0.3.0added and which is likewise not re-exported.
0.10.1 #
- perf: Remove the per-row
Materialfrom node rows.CustomInkWellno longer wraps each row in its ownMaterial > Ink > InkWell; insteadFolderViewContentprovides a single transparentMaterialonce above the row list, and every row's ink (splash / highlight) paints onto that shared surface. Profiling a large tree under fling scroll showed the per-row Material crossed the 16 ms frame budget noticeably more often than the shared-Material variant. Ripple, hover, highlight, and selection are visually unchanged; the publicFolderViewAPI is unchanged (CustomInkWellis an internal row primitive and now requires an ancestorMaterialby design).
0.10.0 #
- BREAKING: Bump
just_tooltipto^0.3.0. ItsJustTooltipController— re-exported here and usable viaNodeTooltipTheme.controller— is no longer aChangeNotifier:shouldShowandaddListener/removeListener/disposeare removed. Drive it withshow()/hide()/toggle()and observe visibility via the tooltip'sonShow/onHidecallbacks.just_tooltipalso narrowed its exports (JustTooltipPositionDelegate,TooltipShapePainter,JustTooltipOverlayare now internal). Noflutter_folderviewAPI changed. - perf: Pack a
FlatNode's ancestor tree-line flags into anintbitmask instead of a per-nodeList<bool>, removing a heap allocation for every flattened node (the flags are read only for painted rows). Flatten is ~3× faster and the flat-list heap footprint roughly halves on large trees. Tree-line rendering is unchanged; tree depth is capped at 63. - perf: Apply incremental expand/collapse in place on the cached flat list instead of copying the whole list on every single-node toggle — ~1.7× faster toggles on large trees. Visible rows and scroll anchoring are unchanged.
- perf: In
RowMetrics.maxWidth, merge the effective text style once per tier instead of once per node, removing the per-nodeTextStyleallocation on every data / scale / theme change (~5.5× faster on the warm measurement path). The returned width is unchanged, so horizontal scroll extent and clipping are identical. - test / ci: Add widget tests for the
FolderViewinteraction, selection, view-mode, and modifier+wheel scale-gesture contracts; add anintegration_testharness driving the example app end-to-end (boot, expand, select, zoom, view-mode switch); add a GitHub Actions analyze + test workflow; addbenchmark/microbenchmarks and heap-footprint measurements for the flatten / projection / maxWidth hot paths.
0.9.0 #
- refactor: Decentralize content scaling — each theme class now exposes its own
scale()method, replacing the prior centralized_applyScaleimplementation. Existing usage (FolderView(scale: ...)) is unaffected. - feat: Add
FlutterFolderViewTheme.scale({required factor, required defaultFontSize})andFlutterFolderViewTheme.scaledForContext(BuildContext, double)for callers who want a scaled theme outsideFolderView(custom previews, integration tests, etc.). - docs: Add
CONTEXT.md(domain glossary) and ADRs0001(scrollbars excluded from scale),0002(caller owns interaction state),0003(selection tier-bound to child),0004(tooltips excluded from scale). - test: Add 31 unit tests covering the new scale API (identity short-circuit, positivity assertion, chrome exclusion for scrollbars/tooltips, null
fontSizeresolution againstdefaultFontSize).
0.8.1 #
- fix: Explicitly set
SystemMouseCursors.clickas the defaultmouseCursoron nodeInkWell— newer Flutter versions no longer auto-apply the click cursor on hover
0.8.0 #
- BREAKING: Rename
blockCtrlScroll→blockModifierScrollto accurately reflect platform-aware behavior (Ctrl on Windows/Linux, Cmd on macOS) - BREAKING:
blockModifierScrollis nowbool?(defaultnull) — automatically followsonScaleChangedwhen unset - feat: Add
onScaleChangedcallback andscaleStepparameter for built-in modifier+scroll zoom handling - feat: Export
isScaleModifierPressed()helper for library consumers implementing custom zoom logic - fix: Use platform-aware modifier key check to prevent Windows key from permanently triggering zoom mode
0.7.1 #
- feat: Add
blockCtrlScrollparameter toFolderView(default:true) — optionally disable Ctrl/Cmd + scroll blocking for users who don't need zoom-by-scroll
0.7.0 #
- feat: Add
scaleparameter toFolderViewfor content zoom (default:1.0) - feat: Scale all layout dimensions proportionally — row height, icon sizes, text size, spacing, line width, indentation, content padding, border radius
- feat: Scrollbar appearance (thickness, track width, colors) is NOT affected by scale
- feat: Preserve visible node on scale change with automatic scroll position adjustment
- feat: Ignore scroll events when Ctrl/Cmd is pressed to support zoom-by-scroll without unintended scrolling
- fix: Defer scroll position adjustment to post-frame callback to prevent
setState() called during builderror - fix: Scale content width clamp limit (
3x viewport * scale) to prevent text ellipsis at high scale values - example: Add scale slider to Layout controls and Ctrl/Cmd + mouse wheel zoom support
0.6.9 #
- fix: Pre-compute content width from all nodes (including collapsed) to prevent layout jumps on expand/collapse
- fix: Include
letterSpacingin text width calculation for accurate horizontal scroll sizing - feat: Add
calculateMaxContentWidthmethod toSizeServicefor upfront width calculation - example: Add long name test options (Folder/Parent/Child) to data generator for horizontal scroll testing
0.6.8 #
- feat: Bump just_tooltip to 0.2.5
- feat: Add
hideOnEmptyMessageoption toNodeTooltipTheme— suppress tooltip when message is empty (default:true) - feat: Support
TooltipAlignment.startTargetCenterandendTargetCenteralignments — arrow dynamically points to the center of the target widget
0.6.7 #
- fix: Bump just_tooltip to 0.2.3 — fix
borderColornot visible whenshowArrow: false
0.6.6 #
- fix: Tighten
just_tooltipconstraint to^0.2.2to fix pub.dev lower bounds compatibility check
0.6.5 #
- feat: Bump just_tooltip to 0.2.1
- feat: Add
animation(TooltipAnimation) option toNodeTooltipTheme— supportsnone,fade,scale,slide,fadeScale,fadeSlide,rotation - feat: Add
animationCurve,fadeBegin,scaleBegin,slideOffset,rotationBeginoptions toNodeTooltipTheme - feat: Export
TooltipAnimationfrom barrel file
0.6.4 #
- feat: Bump just_tooltip to 0.2.0
- feat: Add
showArrow,arrowBaseWidth,arrowLength,arrowPositionRatiooptions toNodeTooltipTheme - feat: Add
borderColor,borderWidthoptions toNodeTooltipTheme - feat: Add
screenMarginoption toNodeTooltipTheme - feat: Export
JustTooltipThemefrom barrel file
0.6.3 #
- fix: Bump just_tooltip to 0.1.5 (bugfix)
0.6.2 #
- feat: Add
interactive,waitDuration,showDuration,boxShadowoptions toNodeTooltipTheme(just_tooltip 0.1.4)
0.6.1 #
- fix: Tooltip hover area now limited to icon+label only, no longer triggers on empty row space
0.6.0 #
- BREAKING CHANGE: Migrate tooltip from Flutter
Tooltiptojust_tooltippackage - BREAKING CHANGE: Remove
TooltipPositionenum — replaced byTooltipDirection(top/bottom/left/right) - BREAKING CHANGE: Remove
margin,verticalOffset,waitDuration,boxShadowfromNodeTooltipTheme - BREAKING CHANGE: Remove
richMessage/richMessageResolver— replaced bytooltipBuilder/tooltipBuilderResolver(WidgetBuilder) - feat: Add
direction(4-directional),alignment(start/center/end),offset,crossAxisOffsetproperties toNodeTooltipTheme - feat: Add
elevation,borderRadius,paddingproperties toNodeTooltipTheme - feat: Add
controller(JustTooltipController) for programmatic tooltip show/hide - feat: Add
enableTap,enableHoverproperties for tooltip trigger control - feat: Add
animationDuration,onShow,onHideproperties toNodeTooltipTheme - feat: Tooltip now wraps both node icon and label instead of label only
- feat: Export
TooltipDirection,TooltipAlignment,JustTooltipControllerfrom barrel file
0.5.3 #
- fix: Recursively collect parent nodes from nested folders in tree mode
0.5.2 #
- perf: Replace
setStatewithValueNotifierfor horizontal scroll offset and hover state to prevent full widget tree rebuilds - perf: Eliminate recursive list spreading in
FlattenService.flatten()by reusing a single mutable list with add/removeLast pattern
0.5.1 #
- fix: Show full text on horizontal scroll instead of ellipsis-truncated text using
OverflowBox
0.5.0 #
- BREAKING CHANGE: Remove
isExpandedproperty fromNode<T>model - nodes are now immutable - BREAKING CHANGE: Add
expandedNodeIdsparameter toFolderView,FolderViewContent, andNodeWidgetfor external expansion state management - BREAKING CHANGE: Update
SizeServicemethods to acceptexpandedNodeIdsparameter - perf: Add incremental expand/collapse with
expandNode()andcollapseNode()methods inFlattenService - perf: Implement text width caching via
_textWidthCacheto reduce expensiveTextPainterlayout calls - perf: Add lazy content width measurement - calculate as nodes render instead of upfront O(N) traversal
- perf: Optimize scroll performance for 20k+ nodes with
Transform.translateanditemExtentonListView.builder - fix: Clamp scroll offset to valid range instead of skipping sync when out of range
- fix: Preserve scroll position on bulk expand/collapse (expandAll/collapseAll) using viewport anchor node
0.4.0 #
- feat: Add
labelResolvertoFolderNodeTheme,ParentNodeTheme,ChildNodeThemefor dynamic label resolution based onnode.data - fix: Update animation controller duration in
didUpdateWidgetwhen themeanimationDurationchanges at runtime
0.2.4 #
- feat: Add
labelResolverto all node themes for dynamic label display
0.2.3 #
- feat: Add
colorandexpandedColorproperties toExpandIconThemefor expand icon color theming
0.2.2 #
- refactor: Unified expand icon logic to ensure consistent node layout alignment
- refactor: Add
isChildparameter to_buildExpandIconfor proper child node spacing
0.2.1 #
- feat: Add
hoverColor,splashColor, andhighlightColorproperties to all node themes for interaction color theming - feat: Add comprehensive tooltip support with
NodeTooltipThemeclass for all node types - feat: Add
rowHeightproperty toFlutterFolderViewThemefor configurable row height - feat: Add
rowSpacingproperty toFlutterFolderViewThemefor vertical spacing between rows - refactor: Remove
iconToTextSpacingproperty from all node themes - now controlled via iconmargin.right
0.2.0 #
- BREAKING CHANGE: Migrate from unified
FolderViewTextThemeandFolderViewIconThemeto node-type specific themes (FolderNodeTheme,ParentNodeTheme,ChildNodeTheme,ExpandIconTheme) - feat: Add custom
Widget?support for each node type instead of hardcodedIconwidgets - feat: Add
openWidgetproperty for folder nodes (displayed when expanded) - feat: Add
paddingandmarginproperties for each widget type - feat: Add
clickIntervalproperty toChildNodeThemefor configurable double-click detection (default: 300ms) - feat: Add
animationDurationproperty toFlutterFolderViewThemefor configurable expand/collapse animation speed - feat: Add theme resolver functions (
widgetResolver,textStyleResolver,selectedTextStyleResolver,openWidgetResolver) for dynamic styling based on node data - feat: Add generic type support
<T>to all theme classes for type-safe access tonode.data
0.1.2 #
- fix: Fixed scroll position being reset when expanding/collapsing nodes by removing contentHeight from SyncedScrollControllers key
0.1.1 #
- fix: Fixed scroll position calculation when switching between view modes or expanding/collapsing nodes
0.1.0 #
- feat: Add dual view modes (Tree and Folder)
- feat: Add three node types (Folder, Parent, Child) for flexible hierarchy representation
- feat: Add multiple line styles (Connector, Scope, None) for visual tree structure
- feat: Add comprehensive theming system (icon, text, line, scrollbar, spacing, node style)
- feat: Add interactive features (selection, tap handlers, expand/collapse animations)
- feat: Add synchronized horizontal and vertical scrolling with custom scrollbars
- feat: Add depth-based indentation for nested nodes
- fix: Correct indent and line positioning for nested nodes based on depth level