flutter_advanced_segment
3.2.0, released 8 months ago by alexmelnyk.io
An advanced segment widget with full customization support and drag gestures.
WASM-ready
What it does
Provides a customizable segment control widget for Flutter. It supports text styles, layout decoration, gradients, custom sliders, shadows, and drag gestures.
AI-written summary of version 3.2.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a segmented control widget to switch between different views or options.
- You want to fully customize the appearance of the segment layout and the slider thumb using gradients, borders, or custom decorations.
Skip it when
- You require native platform-styled segment controls like Cupertino segmented control out of the box without manual styling.
- You need complex form builder integration rather than a standalone selection widget.
Strengths
- Highly customizable through decoration parameters, gradients, and custom slider decorations.
- Supports drag gestures for switching segments.
- Generic types support for segment keys.
Weaknesses
- Recent versions include breaking changes like the replacement of background color and border radius parameters with a unified decoration parameter.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
final _controller = ValueNotifier('all');
AdvancedSegment(
controller: _controller,
segments: const {
'all': 'All',
'starred': 'Starred',
},
)Alternatives
Packages that do the same job and could replace flutter_advanced_segment.
Works with
Packages commonly used together with flutter_advanced_segment: ones it builds on, ones built on it, and its own family.
- flutter_advanced_switchSame familyA customizable switch widget with animations, custom colors, text, icons, and background images.
- flutter_advanced_drawerSame familyCustomizable advanced drawer widget for Flutter
- 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.