An open API service indexing awesome lists of open source software.

https://github.com/hhgz9527/yg_indicator_button

Flutter UI activity indicator button
https://github.com/hhgz9527/yg_indicator_button

activity-indicator button flutter

Last synced: 3 months ago
JSON representation

Flutter UI activity indicator button

Awesome Lists containing this project

README

          

## Features

![image](https://github.com/hhgz9527/yg_indicator_button/blob/main/example.gif?raw=true)

## Getting started

add `yg_indicator_button:` to your `pubspec.yaml` file.

```
dependencies:
flutter:
sdk: flutter
yg_indicator_button:
```

## Usage

TODO: Include short and useful examples for package users. Add longer examples
to `/example` folder.

```dart
YGIndicatorButton(
normalTitle: 'Create',
height: 50,
width: 200,
action: (closure) {
closure(YGIndicatorStatus.loading);
// fake API request
Future.delayed(const Duration(seconds: 2), () {
closure(YGIndicatorStatus.completed);
});
},
)
```