debounce_flutter 0.0.2 copy "debounce_flutter: ^0.0.2" to clipboard
debounce_flutter: ^0.0.2 copied to clipboard

Debounce widget.

simple debounce widget 一个简单的防止重复点击组件

Base Usage(基本用法) #

DebounceWidget(
  child: ElevatedButton(
    onPressed: (){},
    child: const Text("Submit"),
  ),
)

Other Usage (其它参数) #

DebounceWidget(
  onDebounce: () => print("too fast / 太快了"), // options/可选
  duration: 5000, //  milliseconds options / 毫秒 可选
  child: ElevatedButton(
    onPressed: vm.loginOrRegister,
    child: const Text("登 录"),
  ),
)

Global (全局设置) #

DebounceWidget.defaultDuration = 10000;
1
likes
110
pub points
63%
popularity

Publisher

unverified uploader

Debounce widget.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on debounce_flutter