Skip to content
pubscout

lite_rolling_switch

1.0.1, released 4 years ago by an unverified publisher

Customizable rolling switch widget with animations, colors, and icon support.

WASM-ready
$ flutter pub add lite_rolling_switch
Source repository

What it does

Provides a custom rolling switch widget for Flutter apps that features attractive animations. It allows developers to customize colors, icons, text, and other cosmetic properties while managing states like a classical material switch widget.

AI-written summary of version 1.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a custom animated rolling switch instead of a standard material switch.
  • You want to customize text, icons, and colors for on and off states.

Skip it when

  • You need to directly change the widget height properties (currently not supported).
  • You require a standard platform-native switch widget.

Strengths

  • Customizable colors, icons, and text for states.
  • Supports null safety and RTL.
  • Includes unit tests.

Weaknesses

  • Cannot directly change widget height properties.
  • Limited to switch functionality.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1
LiteRollingSwitch(
    value: true,
    textOn: 'disponible',
    textOff: 'ocupado',
    colorOn: Colors.greenAccent[700],
    colorOff: Colors.redAccent[700],
    iconOn: Icons.done,
    iconOff: Icons.remove_circle_outline,
    textSize: 16.0,
    onChanged: (bool state) {
      print('Current State of SWITCH IS: $state');
    },
)

Alternatives

Packages that do the same job and could replace lite_rolling_switch.

Works with

Packages commonly used together with lite_rolling_switch: ones it builds on, ones built on it, and its own family.