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
- Host: GitHub
- URL: https://github.com/hhgz9527/yg_indicator_button
- Owner: hhgz9527
- License: mit
- Created: 2021-12-06T09:00:18.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-23T08:07:45.000Z (over 3 years ago)
- Last Synced: 2025-10-23T00:31:56.289Z (7 months ago)
- Topics: activity-indicator, button, flutter
- Language: Dart
- Homepage:
- Size: 222 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Features

## 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);
});
},
)
```