0 purchases
tbib button with loader
TBIB Button with loader #
Import #
import 'package:tbib_button_with_loader/tbib_button_with_loader.dart';
copied to clipboard
How To Use #
ButtonWithLoader(
onPressed: (startLoading, stopLoading,
Function(bool isSuccess) isSuccess, state) {
this.startLoading = startLoading;
this.stopLoading = stopLoading;
this.isSuccess = isSuccess;
this.startLoading?.call();
Future.delayed(const Duration(seconds: 2), () {
this.stopLoading?.call();
});
},
title: 'Click Me',
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.