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