Skip to main content

liquid_segmented_bar 0.2.0 copy "liquid_segmented_bar: ^0.2.0" to clipboard
liquid_segmented_bar: ^0.2.0 copied to clipboard

An iOS "liquid glass" style segmented control for Flutter: a frosted glass capsule with an animated glass bubble that slides to the selected segment.

0.2.0 #

  • Light background support. New optional parameters (all default to the previous look, so existing code is unchanged):
    • backgroundColor, borderColor, borderRadius, shadows for the capsule.
    • bubbleColor, bubbleShadows for a solid (e.g. white) selection bubble.
    • selectedForegroundColor, unselectedForegroundColor for label colors.
  • The bubble radius now follows borderRadius (inset by 4).
  • blurSigma: 0 skips the backdrop filter entirely (cheaper on solid backgrounds).
  • Docs: README badges (pub, CI, coverage, style, license) and a "Light backgrounds" section.
  • CI: GitHub Actions workflow with analyze, tests and Codecov coverage.

0.1.1 #

  • Docs: use an absolute URL for the README example GIF so it renders on pub.dev.

0.1.0 #

  • Initial release: LiquidSegmentedBar, LiquidSegment, LiquidLabelBehavior.
  • Configurable icon/image size and label font sizes.
  • Auto height from content, clamped by minHeight / maxHeight.
  • Overflow safe: labels ellipsize, content scales down when space is tight.
  • Label modes: always, selectedOnly, never.
  • Visuals: icon, asset (path or URL), visual, visualBuilder.
  • No SVG dependency: plug in flutter_svg via assetBuilder or the app-wide LiquidSegmentedBar.defaultAssetBuilder.
1
likes
160
points
436
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

An iOS "liquid glass" style segmented control for Flutter: a frosted glass capsule with an animated glass bubble that slides to the selected segment.

Repository (GitHub)
View/report issues

Topics

#ui #widget #segmented-control #glassmorphism

Funding

Consider supporting this project:

buymeacoffee.com

License

MIT (license)

Dependencies

flutter

More

Packages that depend on liquid_segmented_bar