segmented_button_slide
2.0.0, released 2 years ago by an unverified publisher
Segmented button with sliding indicator for Material UI.
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.
- flutter_carousel_widget
A Flutter carousel with ten composable effects, autoplay, indicators, and accessibility.
86Compare - loading_icon_button
Flutter loading buttons with state machine, success/error states and animated thinking-orbs.
69Compare - adaptive_liquid_glass
Provides iOS‑style Liquid Glass widgets with Material 3 fallbacks for Android.
65Compare - carousel_custom_slider
A customizable carousel/slider widget with indicator positioning, text overlay, and 3D effects.
73Compare