Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karbunkul/flutter_debounce_builder
https://github.com/karbunkul/flutter_debounce_builder
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/karbunkul/flutter_debounce_builder
- Owner: karbunkul
- License: mit
- Created: 2022-04-15T11:17:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-18T06:19:23.000Z (over 2 years ago)
- Last Synced: 2024-08-03T14:07:55.239Z (3 months ago)
- Language: Dart
- Size: 167 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
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
```dart
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)),
);
},
);
}
}
```