slide_to_confirm
1.1.0, released 5 years ago by an unverified publisher
A slider that triggers a callback when slid to 100%.
WASM-readyCopyleft license
What it does
The ConfirmationSlider widget displays a horizontal slider that the user can drag to the end. When the slider reaches 100%, it calls the provided onConfirmation callback.
AI-written summary of version 1.1.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Confirming destructive actions like delete or logout
- Triggering a one-time action that requires user intent
- Replacing a button with a more engaging UI
Skip it when
- Complex animations that need custom physics
- When you need a fully custom draggable widget with non-linear behavior
- When the project requires a permissive license
Strengths
- Highly customizable properties (colors, shapes, text)
- Null safety and cross-platform support
- Simple API with only one required callback
Weaknesses
- GPL-3.0 license may restrict commercial use
- Limited to a single slider type, no advanced gestures
- No built-in accessibility labels
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:slide_to_confirm/slide_to_confirm.dart';
class MyWidget extends StatelessWidget {
void confirmed(){
print('Slider confirmed!');
}
@override
Widget build(BuildContext context){
return ConfirmationSlider(
onConfirmation: confirmed,
);
}
}Alternatives
Packages that do the same job and could replace slide_to_confirm.
- measure_size
Widget that reports its size changes via a callback.
58Compare - loader_overlay
Show a loading overlay to prevent user interaction during async operations.
66Compare - tuna_flutter_range_slider
A material design single and range slider widget with vertical and horizontal support.
39Compare - lazy_load_scrollview
A wrapper for scrollable widgets that triggers a callback when reaching the end of the page.
50Compare