yg_indicator_button 0.0.1 copy "yg_indicator_button: ^0.0.1" to clipboard
yg_indicator_button: ^0.0.1 copied to clipboard

A new Flutter package project.

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