lite_rolling_switch
1.0.1, released 4 years ago by an unverified publisher
Customizable rolling switch widget with animations, colors, and icon support.
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.
- rolling_switch
Custom switch button with attractive animation and customizable colors, icons, and text content.
42Compare - app_badge_plus
Flutter plugin to set numeric badges on app icons for iOS, Android, and macOS
84Compare - super_drag_and_drop
Native drag and drop for Flutter across desktop, mobile and web.
78Compare - flutter_sliding_toast
Displays customizable sliding and popup toasts with animations, queueing, and stacking modes.
71Compare
Works with
Packages commonly used together with lite_rolling_switch: ones it builds on, ones built on it, and its own family.