slide_switcher
1.1.2, released 4 years ago by an unverified publisher
Create customizable horizontal or vertical sliding switch widgets in Flutter.
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.
- syncfusion_flutter_datagrid_export
Export Syncfusion Flutter DataGrid content to Excel and PDF formats
87Compare - capp
A Dart package for building interactive console applications with widgets, input handling, and progress indicators.
76Compare - simple_tooltip
A Flutter widget for customizable balloon‑style tooltips.
50Compare - flutter_xlider
A material design slider and range slider for Flutter supporting horizontal and vertical axes and RTL.
50Compare