animated_toggle_switch
0.8.7, released 10 months ago by splashbyte.dev
Fully customizable, draggable and animated switch widget with multiple choices and loading animation.
What it does
Provides a fully customizable, draggable, and animated switch widget supporting multiple choices, smooth loading states, and various layout styles including rolling and size animations. It supports vertical orientations, RTL, nullable selections, and custom builders for icons and indicators.
AI-written summary of version 0.8.7, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a multi-choice toggle or switch with custom animations.
- You require loading state integration directly inside a switch interaction.
- You want custom rolling or sizing transitions between selected options.
Skip it when
- You only need a simple, native single-choice boolean Switch widget.
- You require complex gesture-driven paging instead of simple selections.
Strengths
- Prebuilt constructors for dual, rolling, and size-based switches.
- Supports loading animations natively by returning a Future in `onChanged`.
- Highly customizable with builder functions and theme extensions.
Weaknesses
- Extensive customization options can lead to verbose configuration code.
- Targeted strictly at toggle and switch components rather than full sliders.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
AnimatedToggleSwitch<int>.rolling(
current: value,
values: [0, 1, 2, 3],
onChanged: (i) => setState(() => value = i),
iconBuilder: (value) => Icon(_icon(value)),
)Alternatives
Packages that do the same job and could replace animated_toggle_switch.
- sheet
A fully customizable draggable bottom sheet for Flutter.
73Compare - flutter_multiple_loaders
A collection of customizable standard and innovative loading animation widgets.
61Compare - rounded_loading_button_plus
Animated button with loading, success and error states for Flutter.
50Compare - uiblock
Easily block or unblock the UI with loading states in Flutter apps.
48Compare