FLUTTER ECOSYSTEM

flutter_switch

A custom switch widget that can have a custom height and width, borders, border radius, colors, toggle size, custom text and icons inside the toggle.

flutter_switch cover
Latest version
0.3.2
30-day downloads
126K
Likes
634
Pub points
150

Package Overview

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

Overview

flutter_switch is a customizable switch widget for Flutter that allows developers to adjust dimensions, borders, corner radius, colors, and toggle size. It supports custom text and icons within the toggle, offering high visual flexibility. Ideal for creating unique on/off controls with tailored designs across multiple platforms. The package is lightweight and easy to integrate via pub.dev.

Use cases
  • Custom UI switches
  • Theming toggle elements
  • Cross-platform switch components
  • Interactive form controls
  • Enhanced user interface design
Key features
  • Adjustable height and width
  • Custom border and corner radius
  • Support for icons and text in toggle
  • Configurable colors and toggle size
  • Cross-platform compatibility
Suitable for
  • UI designers seeking customization
  • Developers building interactive forms
  • Apps requiring branded toggle switches
  • Projects targeting multiple platforms
  • Teams prioritizing consistent UI elements
Considerations
  • Requires manual handling of state management
  • Limited built-in animations
  • Not suitable for complex dynamic toggles
  • May need additional styling for accessibility
  • Depends on external package for advanced features
Supported platformsAndroidiOSWebmacOSWindowsLinux

Install package

flutter pub add flutter_switch

Categories

Source repository

Related projects