Skip to content

hhgz9527/yg_indicator_button

Repository files navigation

Features

image

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.

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

About

Flutter UI activity indicator button

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published