Search packages, repositories and app categories

switcher cover
Package detailsv1.0.0

switcher

A beautiful animated, and personalized switcher widget component.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
354
Likes
45
Pub points
140

Install package

flutter pub add switcher

Package Overview

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

Switcher is a visually appealing, animated switcher widget for Flutter that allows developers to create customizable toggle switches with smooth transitions. Designed for elegance and personalization, it supports various styles, colors, and animations, making it ideal for modern UIs. The package is cross-platform, working seamlessly across Android, iOS, Web, macOS, Windows, and Linux. It integrates easily via pub.dev and offers a clean API for quick implementation. Perfect for settings, themes, or any on/off functionality requiring aesthetic appeal.

Use cases

  • Custom theme toggles
  • User preference switches
  • On/off state indicators
  • Interactive UI elements
  • Settings panels

Key features

  • Animated transitions
  • Highly customizable design
  • Cross-platform support
  • Smooth user interactions
  • Easy integration with Flutter
  • Personalized appearance options

Suitable for

  • UI designers seeking visual polish
  • Developers building interactive settings
  • Apps requiring elegant toggle components
  • Cross-platform applications
  • Projects emphasizing user experience

Considerations

  • May require additional styling for complex use cases
  • Performance impact with many instances
  • Limited built-in accessibility features
  • Depends on external animation libraries
  • Not suitable for non-interactive switches

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

logo

A animated, beautiful and personalized switcher component.

Based on Eduardo Muñoz's widget lite_rolling_switch

 

Pub Package Buy Me A Coffee

Overview

A animated and beautiful Switcher

Contributing
Getting Started

In pubspec.yaml:

dependencies:
  switcher: any
See how:
Using switcher Using switcher Using switcher Using switcher Using switcher Using switcher Using switcher Using switcher
import 'package:switcher/switcher.dart';

Switcher(
    value: false,
    size: SwitcherSize.large,
    switcherButtonRadius: 50,
    enabledSwitcherButtonRotate: true,
    iconOff: Icons.lock,
    iconOn: Icons.lock_open,
    colorOff: Colors.blueGrey.withOpacity(0.3),
    colorOn: Colors.blue,
    onChanged: (bool state) {
    //
    },
),

 Switcher(
    value: false,
    size: SwitcherSize.large,
    switcherButtonRadius: 50,
    iconOff: null,
    enabledSwitcherButtonRotate: false,
    colorOff: Colors.blueGrey.withOpacity(0.3),
    colorOn: Colors.blue,
    onChanged: (bool state) {
    //
    },
),

Features and bugs

Please send feature requests and bugs at the issue tracker.

Categories

Source repository

Projects using this package

No data available yet.