FLUTTER ECOSYSTEM

sliding_switch

Sliding Switch - A simple switch widget. It can be fully customized with desired width, colors, text etc. It also maintains selection state.

sliding_switch cover
Latest version
1.1.0
30-day downloads
472
Likes
33
Pub points
130

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Overview

SlidingSwitch is a customizable switch widget for Flutter that allows users to toggle between two states with a sliding motion. It supports full customization of width, colors, text labels, and animation. The widget maintains its selection state across rebuilds, ensuring consistent user experience. Designed for simplicity and flexibility, it works seamlessly across Android, iOS, Web, macOS, Windows, and Linux platforms. Ideal for settings, preferences, and on/off toggles in apps.

Use cases
  • User preference toggles
  • Settings panels
  • On/off switches
  • Form controls
  • Dark mode switches
Key features
  • Fully customizable appearance
  • State persistence
  • Cross-platform support
  • Smooth sliding animation
  • Text label support
  • Configurable width and colors
Suitable for
  • Simple toggle UIs
  • Customizable form elements
  • Multi-platform apps
  • Preference settings
  • Lightweight switch components
Considerations
  • Limited to two-state switching
  • No built-in accessibility features
  • Requires manual handling of state in complex scenarios
  • Not suitable for multi-option selections
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add sliding_switch

Categories

Source repository

Related projects

No data available yet.