flutter_floating_bottom_bar 2.0.0
flutter_floating_bottom_bar: ^2.0.0 copied to clipboard
A flutter package that allows showing a floating widget that can be used as a tab bar, bottom navigation bar, etc. The widget reacts to scrolling events too.
2.0.0 #
Major release. Breaking changes — see the migration table in README.md and EXAMPLES.md.
Breaking:
- Dart SDK minimum is now
>=3.5.0because the package uses Motor-backed motion. BottomBar.bodyis nowWidgetinstead ofWidget Function(BuildContext, ScrollController). The bar listens toScrollNotificationfrom any descendant scrollable; you no longer wire a controller through the builder.- The
barColor,width,offset,borderRadius,barAlignment,fit,clip,respectSafeAreaparameters have moved intoBottomBarLayout. - The
duration,curve,start,endparameters have moved intoBottomBarMotion.BottomBarMotion()now defaults to Cupertino spring motion; existingBottomBarMotion(duration: ..., curve: ...)calls remain curve-based.start/end(doubles) are nowslideStart/slideEnd(Offsets). - The
hideOnScroll,reverse,scrollOpposite,scrollDeltaThresholdparameters have moved intoBottomBarScrollBehavior.scrollDeltaThresholdis nowdeltaThreshold. - The
iconWidth,iconHeight,iconDecoration,barDecorationparameters move toBottomBarThemeData(per-instance overrides remain via thetheme:argument). BottomBarScrollControllerProvideris replaced byBottomBarScope. ThescrollControllerfield is gone; new fields arebarHeightandisVisible.- The hardcoded
Colors.blackdefault is replaced with Material 3colorScheme.surfaceContainerfor the bar andcolorScheme.primaryfor the icon.
New:
- Motor-backed Cupertino motion is the default show/hide engine, with velocity-preserving redirection when scroll direction changes mid-animation.
BottomBarMotion.cupertino(...),BottomBarMotion.curved(...), andBottomBarMotion.motor(...)constructors.BottomBarThemeDataThemeExtensionfor app-wide defaults.BottomBarTransitionenum (slide,fade,scale,slideAndFade) plusBottomBarMotion.transitionBuilderescape hatch.BottomBarItemandBottomBarItemshelpers for the common nav-item case.BottomBarScope.barHeightexposes the live rendered bar height to descendants for content-padding purposes.BottomBarScope.isVisibleexposes live visibility without owning a controller.- Notification-based scroll detection works with
NestedScrollView,CustomScrollView, multipleTabBarViewchildren, and any user-suppliedScrollControllerwith no wiring. BottomBarScrollBehavior.predicatefor filtering unwanted notifications.BottomBarControllernow asserts on double-attach in debug.
Repository:
- Package source moved from
packages/flutter_floating_bottom_bar/to repo root. The example app moved toexample/. Thepackages/directory is removed.
1.4.0 #
- Upgrade project/tooling for Flutter
3.41.4development via FVM. - Update SDK constraints and refresh dependencies.
- Add
BottomBarControllerfor programmaticshow,hide,toggle,scrollToStart, andscrollToEnd. - Add
onVisibilityChangedcallback for visibility state transitions. - Add
scrollDeltaThresholdto reduce flicker from minor scroll movement. - Add
iconSemanticLabelandiconTooltipfor better accessibility. - Improve internal scroll/visibility handling and test coverage.
1.3.0 #
- Added
respectSafeAreaproperty to control whether the BottomBar should respect the SafeArea - Removed deprecated
alignmentproperty (usebarAlignmentinstead) - Fixed ScrollController issues with multiple attachments
- Improved scroll listener management for better performance
1.2.1+1 #
- Fix code formatting
1.2.1 #
- Update to Flutter v3.22.1
- Fix divider error in example
- Update dependencies
1.2.0 #
- Add
offset,barAlignment,barDecoration,iconDecorationproperties. - Remove
bottomproperty. - Deperecated
alignmentproperty, usebarAlignmentinstead.alignmentwill be removed in a future release. - Update all code examples, and fix errors.
1.1.0 #
- Add clip property to support clip behavior.
- Add an example for bar with a FAB.
1.0.1 #
- Support for Flutter 3.10.5
- Update dependencies
1.0.0+1 #
- Add documentation
1.0.0 #
- Initial release with basic functionality