Skip to content
pubscout

slide_switcher

1.1.2, released 4 years ago by an unverified publisher

Create customizable horizontal or vertical sliding switch widgets in Flutter.

WASM-ready
$ flutter pub add slide_switcher
Source repository

What it does

Provides a SlideSwitcher widget that allows users to toggle between multiple child widgets using a sliding selection mechanism. It supports custom colors, gradients, borders, shadows, and both horizontal and vertical orientations.

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

Use it when

  • You need a segmented control or sliding toggle switch in your UI
  • You want to switch views or states based on user tab selection with customized styling

Skip it when

  • You need complex form builders or dropdown selectors
  • Your children widgets do not fit within the defined container size constraints

Strengths

  • Extensive customization options including colors, gradients, and borders
  • Supports both horizontal and vertical directions
  • Includes initial index and tap-to-switch functionality for 2 children

Weaknesses

  • Strict size constraints can throw exceptions if children do not fit the container size
  • Some features like 'isAllContainerTap' are restricted to exactly 2 children

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
SlideSwitcher(
  children: [
    Text('First'),
    Text('Second'),
  ],
  onSelect: (index) {},
  containerHeight: 40,
  containerWight: 350,
)

Alternatives

Packages that do the same job and could replace slide_switcher.