flutter_better_ui 2.0.18
flutter_better_ui: ^2.0.18 copied to clipboard
A modern Flutter UI component library that provides beautiful and easy-to-use widgets, with theme customization and responsive design. Actively maintained.
2.0.18 #
- Add
BetterImagePreview.showwith a requiredList<String> imagesAPI for full-screen network and asset image previews. - Add lazy page construction and adjacent-image precaching to balance switching performance and memory use.
- Add horizontal and vertical paging, optional looping, initial position, localized close semantics, page index, and close/change callbacks.
- Add pinch zoom, configurable double-tap zoom, and edge handoff so users can switch pages after panning a zoomed image to its boundary.
- Add customizable image, loading, error, and index builders while retaining sensible default loading, error, and page-index UI.
- Add
BetterImagePreviewPagewith localized examples for basic preview, vertical paging, close controls, custom index, custom loading/error states, and disabled double-tap zoom.
2.0.17 #
- Add
BetterSkeletonizer, a skeleton loading wrapper that keeps the original child layout and replaces painting with gray placeholder shapes while loading. - Support automatic skeleton generation from child render objects, including text, images, rounded containers, circular avatars, clipped shapes, and decorated boxes.
- Preserve Flutter native lazy loading for scrollable lists, so skeletons are generated only for built and visible list items.
- Add pulsing opacity animation for skeleton placeholders with configurable
fadeDuration,minOpacity, andmaxOpacity. - Add light and dark theme defaults for skeleton colors, with
baseColor,lightBaseColor, anddarkBaseColorcustomization. - Keep scroll gestures available by default while skeletons are enabled, with optional
ignorePointerssupport. - Add
BetterSkeletonPageexample with mixed list layouts to demonstrate skeleton rendering, scrolling, theme switching, and loading-state toggling. - Add
BetterIndexBar.onChangedto listen for active index changes from scrolling or touching the index bar. - Fix
BetterToastin global toast mode so rapid repeated calls update the existing toast content instead of recreating the overlay, preventing flicker. - Fix
BetterToastglobal toast auto-dismiss timing during rapid updates so the latest toast can disappear normally after updates stop. - Guard toast animation controllers from being used after disposal when toast instances are replaced or removed asynchronously.
2.0.16 #
- Fix
BetterSwipeCellcalling its animation controller after disposal when an asynchronous action completes. - Prevent animation listener accumulation in
BetterSwipeCell.
2.0.15 #
- Change
BetterToast.showLoadingto block clicks by default.
2.0.14 #
- Add
BetterDialogfor alert and confirmation dialogs with optional title, content, cancel/confirm buttons, callbacks, disabled button states, custom bottom content, and global context fallback.
2.0.12 #
- Rename
BetterButton,BetterCell, andBetterSwipeCellActionclick callbacks fromonClicktoonTap. - Add
onLongPresssupport toBetterButton. - Update examples and documentation to use the new tap callback APIs.
2.0.10 #
- Fix
BetterToastin global toast mode so normal toast overlays no longer intercept taps on underlying widgets whenforbidClickis disabled.
2.0.9 #
- Add
BetterSlideAction, a slide-to-complete action button with controller reset support. - Add reverse sliding with
reverse, from right to left when enabled. - Add
color,boxDecoration, custom knob/content, disabled state, and auto-reset examples forBetterSlideAction. - Add
BetterSlideActionexample page, route, home entry, and i18n labels.
2.0.7 #
- Fix state synchronization when
BetterSwitch.defaultValuechanges after parent rebuilds. - Optimize update handling for
BetterSwiper,BetterSwipeCell,BetterMarquee, andSpinnerwhen related widget parameters change.
2.0.6 #
- Fix global
BetterToastreplacement so the new toast is inserted before existing toast instances are dismissed. - Update toast dismissal tracking to avoid stale delayed callbacks hiding newer global toast instances.
2.0.5 #
- Add
BetterAssetsfor generating Dart asset constant classes from image directories. - Add test usage for
BetterAssets.generate, including temporary project setup and generated output assertions.
2.0.4 #
- Update
BetterCollapseto render a singleBetterCollapseItemso it can be composed inside page-level scroll views more easily. - Add
expansibleControllersupport for controllingBetterCollapseexpand and collapse from outside. - Update
BetterCollapseexamples in README and README_ZH.
2.0.2 #
- Add
BetterCollapsetheme support for background, collapsed background, arrow icon colors, and ripple color. - Add
BetterCollapseaccordion mode withaccordion. - Add
BetterCollapsetitle spacing controls withminTitleHeightandtitleMinVerticalPadding.
2.0.1 #
- Add
BetterButtoncontent alignment controls withalignment,runAlignment, andcrossAxisAlignment. - Fix
BetterButtoncustomchildvisibility whenloadingandhideContentWhenLoadingare enabled.
2.0.0 #
- Breaking change: initialize Better UI with
BetterUias the app wrapper instead of callingBetterUtil.initmanually. - Add
BetterUi.navigatorKeyand global context/overlay support for route-based popups, pickers, and toast. - Update
BetterToastAPIs to support global usage without passing aBuildContext, including text, success, error, and loading toast variants. - Update
BetterPicker,BetterPopup,BetterDatePicker, andBetterTimePickerto use an optional namedcontextparameter and fall back toBetterUi.currentContext. - Update the example app and documentation to show
MaterialAppconfigured withnavigatorKey: BetterUi.navigatorKey.
1.0.14 #
- Add BetterIndexBar
- BetterToast add isGlobalToast property
1.0.13 #
- Fix the shadow issue of the button
1.0.12 #
- Optimize the use of BetterButton
1.0.11 #
- BetterToast add OnHide callback
- Add BetterSwiper
- Add BetterMarquee
1.0.10 #
- Add BetterTimePicker
- Optimize BetterButton
- Optimize BetterPopup to not require fixed height for pop-up in the middle
1.0.9 #
- Add BetterDatePicker
- BetterSwipeCell Add isStretch attribute
1.0.8 #
- BetterButton Add isShowBorder attribute
1.0.7 #
- Update document content
1.0.6 #
- add BetterSwipeCell
- Fix the height issue of BetterCell
1.0.5 #
- Fix theme errors
1.0.4 #
- Modify the usage document
- No breaking changes
1.0.3 #
- Add BetterSwitch
- Fix the background color of the Better Cell theme
1.0.2 #
- Documentation updates and minor cleanup
- No breaking changes
1.0.0 #
- add BetterButton
- add BetterCell
- add BetterPicker
- add BetterPopup
- add BetterToast
- add BetterTextButton
1.0.1 #
- Fix picker issue, add default parameter values