0 purchases
debounce builder
Debounce builder, debounce timer
Features #
debounce builder - Widget provides debounce function from DebounceTimer instance
debounce timer - Provide call callback after delay duration
Getting started #
Add package to your project bash flutter pub add debounce_builder
Wrap your widget
class HomePage extends StatelessWidget {
const HomePage({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return DebounceBuilder(
delay: const Duration(milliseconds: 250),
builder: (context, debounce) {
return TextField(
onChanged: (value) => debounce(() => print(value)),
);
},
);
}
}
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.