Skip to content
pubscout

segmented_button_slide

2.0.0, released 2 years ago by an unverified publisher

Segmented button with sliding indicator for Material UI.

WASM-ready
$ flutter pub add segmented_button_slide
Source repository

What it does

Provides a single‑purpose widget that displays a row of selectable entries with a sliding bar indicating the current selection. It offers extensive styling options for colors, text, icons, shadows, and animation.

AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a compact, iOS‑style segmented control adapted to Material design.
  • You want a customizable sliding indicator and easy theming across platforms.

Skip it when

  • Complex navigation or state‑management logic is required.
  • You need a full UI kit rather than a single widget.

Strengths

  • Simple API and quick integration
  • Highly customizable appearance
  • Works on all Flutter platforms

Weaknesses

  • Limited to basic segmented control functionality
  • No built‑in state management
  • Customization limited to provided properties

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
SegmentedButtonSlide(
  selectedEntry: selectedOption,
  onChange: (selected) => setState(() => selectedOption = selected),
  entries: const [
    SegmentedButtonSlideEntry(icon: Icons.home_rounded, label: "Home"),
    SegmentedButtonSlideEntry(icon: Icons.list_rounded, label: "List"),
    SegmentedButtonSlideEntry(icon: Icons.settings_rounded, label: "Settings"),
  ],
  colors: SegmentedButtonSlideColors(
    barColor: Theme.of(context).colorScheme.primaryContainer.withOpacity(0.5),
    backgroundSelectedColor: Theme.of(context).colorScheme.primaryContainer,
  ),
);

Alternatives

Packages that do the same job and could replace segmented_button_slide.