Skip to content

Latest commit

 

History

History
46 lines (37 loc) · 1.2 KB

README.md

File metadata and controls

46 lines (37 loc) · 1.2 KB

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