debounce_flutter

Creator: coderz1093

Last updated:

0 purchases

debounce_flutter Image
debounce_flutter Images

Languages

Categories

Add to Cart

Description:

debounce flutter

simple debounce widget
一个简单的防止重复点击组件
Base Usage(基本用法) #
DebounceWidget(
child: ElevatedButton(
onPressed: (){},
child: const Text("Submit"),
),
)
copied to clipboard
Other Usage (其它参数) #
DebounceWidget(
onDebounce: () => print("too fast / 太快了"), // options/可选
duration: 5000, // milliseconds options / 毫秒 可选
child: ElevatedButton(
onPressed: vm.loginOrRegister,
child: const Text("登 录"),
),
)
copied to clipboard
Global (全局设置) #
DebounceWidget.defaultDuration = 10000;
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.