findo 1.0.0 icon indicating copy to clipboard operation
findo: ^1.0.0 copied to clipboard

Simple search field with debounce .

Findo will provide debounce features for your searching operations. While user writing anything in findofield, it doesn't send directly. This field wait to break the users writing.(This component default time 300ms but if you want custom duration, you can declare at the constructor)

Features #

Debounce - Cancalable #

Moslty using text field for searching but if you use directly TextField with onChange, it'll make more resource using so you can just say how often do you wan to use it then findo returns to result for your time.

 FindoField(duration: Duration(seconds: 100), onChanged: .. ),

Getting started #

I've used only async package for tihs library.

Usage #

void _fetchSearch(String value) {
    // It'll be called every 300 seconds
    _samples.where((element) => element.contains(value));
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: FindoField(
          duration: Duration(seconds: 100),
          onChanged: (value) {
            _fetchSearch(value);
          },
        ),
      ),
    );
  }

Additional information #

That's package pretty small but more important solutions. Do you want to add fixes, features or etc., you can always send P.R and i'll lovely to checking.

3
likes
110
pub points
42%
popularity

Publisher

unverified uploader

Simple search field with debounce .

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

async, flutter

More

Packages that depend on findo