sliding_pill_drawer 1.0.1
sliding_pill_drawer: ^1.0.1 copied to clipboard
A customizable side drawer with a draggable pill button that slides 1:1 with the panel. Supports sticky and in-list follower modes, plus RTL/LTR.
Changelog #
1.0.1 #
No public API changes — packaging, documentation, and quality improvements.
Documentation #
- Rewrote README with badges, full feature list, demo placeholders, expanded usage examples, complete API reference, architecture notes, and roadmap.
- Added
CONTRIBUTING.md,CODE_OF_CONDUCT.md, GitHub issue templates, and pull-request template. - Added
doc/CAPTURE.mdwith instructions for recording the demo media used by the README and pub.dev screenshots. - Added
doc/architecture.mdexplaining theLayerLink/CompositedTransformFollowerfollower-mode mechanism. - Filled in dartdoc for every public member (typedefs, classes, constructors, fields, methods).
Quality #
- Strengthened
analysis_options.yaml: enabledpublic_member_api_docs,package_api_docs,prefer_single_quotes,require_trailing_commas,sort_constructors_first,sort_pub_dependencies,use_super_parameters,always_declare_return_types,unawaited_futures, and strict type inference (strict-casts,strict-inference,strict-raw-types). - Reordered class members so constructors come first.
- Added widget tests for drag-to-open/close, backdrop tap-to-close, sticky
positioning, custom
pillBuilder, custombackdropBuilder, and RTL panel mirroring. - Added unit tests for
DefaultPill(chevron direction in LTR/RTL, tap callback, fade-out as animation progresses).
CI / publishing #
- Added GitHub Actions:
ci.yml(format + analyze + test on push and PR),example-build.yml(verify the example app still builds), andpublish.yml(tag-driven pub.dev release via OIDC trusted publishing). - Added
.github/dependabot.ymlfor weekly GitHub Actions and pub dependency updates.
Pub.dev metadata #
- Added
topics(drawer,navigation,animation,rtl,ui),screenshots, anddocumentationfields topubspec.yaml.
1.0.0 #
Initial release.
SlidingPillDrawerwidget that wraps any page with a draggable side drawer.- Two placement modes:
- Sticky — pill pinned at a fixed vertical offset (
stickyTop). - Follower — pill attached to a
SlidingPillDrawerTargetvia aLayerLink, so it scrolls with the body.
- Sticky — pill pinned at a fixed vertical offset (
SlidingPillDrawerControllerfor imperativeopen()/close()/toggle()and readingvalue/isOpen.- Horizontal drag on the pill moves the panel 1:1 with the finger and snaps based on final position.
- Full RTL / LTR support via
Directionality. - Customizable pill via
pillBuilder, or replace only the default text viadefaultPillText. - Tunable
panelWidthFractionandanimationDuration. - Zero external dependencies.
