fast_package 0.0.6
fast_package: ^0.0.6 copied to clipboard
A lightweight Flutter toolkit with debounce/throttle, async queue, extensions, and UI widgets (Toast, Loading, Shimmer, Refresh, Slidable, animated list, gradient borders). Depends only on the Flutter SDK.
0.0.6 #
- Added
FastAnimatedList/FastSliverAnimatedList: insert and remove animate fromitems+ stableitemId(no manual insert/remove calls) - Added
FastReorderableList/FastSliverReorderableListandFastAnimatedReorderableList/FastSliverAnimatedReorderableListwhen drag reorder is needed alone or together with insert/remove - First-frame stagger uses one shared list ticker (no per-item
AnimationController); diffs larger thananimationBudgetsnap into place FastStaggercovers Column and custom lists (list/grid/synchronized/none); later items that scroll into view do not replay the entrance- Drag is long-press by default, or
FastListDragTrigger.handle+FastListDragHandle;onReordermatchesReorderableListView - Added
FastAnimatedListTheme(ThemeExtension) - Vertical
FastRefreshlocks reorder andFastSlidablewhile pulling or processing; the lock is read at drag start, so pointer-down does not rebuild every tile - Load-more stays smooth:
FastRefreshno longer retargets the ballistic simulation once new items bring the list back in range;FastAnimatedListsnaps tail inserts while Refresh is active or the list is still moving - Fixed handle reorder: the drag origin no longer follows the shift
Transform, and the handle claims the gesture immediately so the parentScrollablecannot steal a vertical drag - Added
FastSlidable: swipe to reveal actions, full swipe, dismiss-to-delete, and programmaticFastSlidableController - Built-in motions:
behind/drawer/scroll; horizontal and vertical axes FastSlidableGroupkeeps one open row pergroupTag;closeOnScrollcloses the open row when the list scrolls- Dismiss and dismissing full swipe require a
keyonFastSlidable; releasing pastFastSlidableFullSwipe.thresholdnow schedules a frame, so the row dismisses without waiting for a later tap - Added
FastSlidableTheme(ThemeExtension) - Added
FastRefresh.maybeOffor optional ancestor lookup FastPagingState.replaceDatareplaces loaded data and rebuilds after a local edit such as swipe-deleteFastRefreshindicator listeners are deferred out of layout, so a header or footersetStateduring layout no longer hits "Build scheduled during frame"FastShimmerScopeholds the gradient throughpauseDurationwithout aShaderMasksaveLayer on every paused frame, and keeps the skeleton behind aRepaintBoundaryFastShimmerSlideUnlockmoves the thumb with a transform and pauses the beam while dragging, so drag frames do not rebuild theShaderMask- Loading overlay blocks route pop on the declared SDK range (Flutter 3.19+)
- Docs (Chinese and English) cover Animated List and Slidable; the docs site embeds the live Flutter web demo
- Example: Animated List scenes cover insert/remove (including batch), drag, both, Refresh, Slidable, and Refresh+Slidable, each with List / Sliver / Column × list / grid; Slidable scenes cover basic, dismiss, programmatic, vertical, and Refresh
- Tests cover list diff / stagger / reorder, slidable (including full-swipe dismiss), refresh layout notify, and slide-unlock drag
0.0.1 #
-
TODO: Describe initial release.
-
Added
-
fast_debounce
-
fast_throttle
-
fast_rate_limit
-
fast_extension
0.0.2 #
- Added new extensions
0.0.3 #
- Added new features
- cover_size
- Fixed bugs
0.0.4 #
- Added shimmer UI component
- Docs migrated to VitePress site(https://arturoyi.github.io/fast_package/)
0.0.5 #
- Overlay:
showToast/showLoading(center, barrier, no queue); single entry, custom content viabuilder(removedshowCustomToast/showCustomLoading) - Added
FastRefresh: EasyRefresh-aligned pull-to-refresh and load-more (custom physics, full indicator state machine, Classic header/footer, controller,noMore, builder / locator /refreshOnStart) - Documented Widget constructor vs
FastRefresh.builder; default builder keeps AppBar outsideFastRefresh FastRefreshunbinds its controller on dispose / replacement; latercallRefresh/finishRefreshare no-opsresetAfterRefreshclears footernoMoreonly after a successful refresh (finishRefresh(success)when completion is controlled)- Added
FastRefreshTheme(ThemeExtension) for Classic copy and Material colors - Added
FastMaterialHeader/FastMaterialFooter(SDK progress indicators; default skin stays Classic) - Added
FastPaging: EasyPaging-aligned pagination on top of FastRefresh (page/total/ empty /noMore) - Added
FastPagingList<T>+FastPagingPage<T>:fetchPage+itemBuilderwithout subclassingFastPaging - Added
FastShimmerHighlight: thin beam on real text / icons / any opaque child (ShaderMask, not skeleton bars) FastShimmerScopegainssweep(wash/beam),pauseDuration, andbandWidth- Highlight defaults: 3 s left-to-right beam, 1.8 s pause, highlight only on opaque glyphs (background stays still)
- Added
FastShimmerSlideUnlock: draggable slider;highlightisarea(slanted soft sheen on the metal capsule) orlabel(centered text only); both use the same 3 s sweep + 1.8 s pause;resetOnUnlock; label does not fade while dragging - Example hub adds Nested, Locator, refreshOnStart, clamping, horizontal ListView/PageView, Header secondary-floor, Paging (
FastPagingList), Material, Highlight, and Slide unlock pages - Tests cover NestedScrollView +
isNested, locator slivers,refreshOnStart, footer completion, horizontal scroll, Header secondary, controller unbind, success-only reset, theme, Material, FastPaging / FastPagingList, highlight beam timing, and unlock reset - Documented horizontal axis (
triggerAxis, PageView must disable footer infinite load), secondary-floor, FastPaging, and decorative shimmer recipes in Chinese and English