antd_floating 1.0.2
antd_floating: ^1.0.2 copied to clipboard
Ant Design floating UI for Flutter - anchored popovers, tooltips, popconfirm and dropdowns with flip and shift positioning.
Changelog #
1.0.2 #
- Republished with a Web-compatible dependency chain.
- Republished to refresh pub.dev platform scoring.
1.0.1 #
- Fix pub.dev static analysis results by aligning internal dependency constraints.
- Ship the package example and tighten pubspec metadata for better pub.dev scoring.
- Documentation and changelog polish.
1.0.0 #
Initial stable release of the standalone antd_floating package.
Features #
AntFloatingPanel: bottom-anchored floating panel with ascendinganchorsratios, a draggable handle, drag-follow height and 250 ms snap-to-nearest-anchor animation.- Panel options for custom
handle,handleHeight(default 28),contentHeightas the anchor base height, andonHeightChangeratio callbacks. AntFloatingPanelControllerwithheightRatio,snapToAnchorAt,expand,collapseandresetToInitial.AntFloatingBubble: draggable floating action button supportingx,yandbothaxes, parent-bound constraints, and optionalautoSnapToEdgeafter a drag.- Bubble menu support through
AntFloatingBubbleMenuActionentries (label, icon, click callback) toggled by tapping the bubble, plus a separateonClickcallback. AntFloatingBubbleControllerwithvisible,position,show,hide,moveTo,snapToEdge,snapToNearestEdgeandresetPosition.- Custom bubble
size,backgroundColorand content, with design logical pixels scaled through the theme scale factor. - Stable keys (
kAntFloatingPanelKey,kAntFloatingPanelHandleKey,kAntFloatingPanelContentKey) for locating panel parts.
Notes #
- Both controllers extend
ChangeNotifier; calls made while detached are safe no-ops. - The bubble renders a full-size transparent layer and lets pointer events pass through outside the bubble and its menu, so it must be hosted in a
StackorOverlay. - The panel does not provide scrolling; its child is expected to be a scrollable if the content overflows.