flutter_advanced_switch
3.2.2, released 2 weeks ago by alexmelnyk.io
A customizable switch widget with animations, custom colors, text, icons, and background images.
What it does
Provides an advanced switch control widget for Flutter supporting customized dimensions, thumb styles, active/inactive child widgets, background images, and state management via controllers or callbacks.
AI-written summary of version 3.2.2, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a highly customizable switch widget beyond the standard Material Switch.
- You want to display text, icons, or background images inside active and inactive states of a toggle.
Skip it when
- You only require a basic, out-of-the-box Material Design switch.
- You need a platform-adaptive switch that matches native Cupertino styling automatically.
Strengths
- Supports custom thumb widgets, colors, text labels, icons, and background images.
- Allows state management using either a ValueNotifier controller or an onChanged callback.
- Smooth built-in animations and configurable dimensions.
Weaknesses
- Does not provide automatic platform-adaptive styling out of the box.
- Limited to switch/toggle controls.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
not documented
import 'package:flutter_advanced_switch/flutter_advanced_switch.dart';
class MyWidget extends StatefulWidget {
@override
State<MyWidget> createState() => _MyWidgetState();
}
class _MyWidgetState extends State<MyWidget> {
final _controller = ValueNotifier<bool>(false);
@override
void dispose() {
_controller.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return AdvancedSwitch(
controller: _controller,
);
}
}Alternatives
Packages that do the same job and could replace flutter_advanced_switch.
- easy_stars
A comprehensive Flutter package for rating and review stars with animations and layouts.
74Compare - custom_interactive_viewer
Customizable alternative to InteractiveViewer with gesture, rotation, and keyboard controls
62Compare - slideable
Flexible and customizable slideable list item widget for Flutter apps.
62Compare - custom_text
Customisable text widget with advanced styling, gesture interactions, and a text editing controller.
53Compare
Works with
Packages commonly used together with flutter_advanced_switch: ones it builds on, ones built on it, and its own family.
- flutter_advanced_drawerSame familyCustomizable advanced drawer widget for Flutter
- flutter_advanced_segmentSame familyAn advanced segment widget with full customization support and drag gestures.
- flutter_advanced_avatarSame familyAn advanced avatar widget with support for initials, images, status badges, and animations.
- flutter_advanced_calendarSame familyAn advanced calendar widget with customizable views and rich API.