Skip to content
A Flutter Material Button that animates between Progress and Error states
Dart
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib - Changed text requirement to child widget requirement. Mar 13, 2019
test - Initial commit Jan 29, 2019
.gitignore - Removed pubspec from git Jan 29, 2019
.metadata - Initial commit Jan 29, 2019
CHANGELOG.md - Changed text requirement to child widget requirement. Mar 13, 2019
LICENSE
README.md - Changed text requirement to child widget requirement. Mar 13, 2019
demo1.gif - Fixed README, added demo gifs Jan 29, 2019
demo2.gif
progress_button.iml - Initial commit Jan 29, 2019
pubspec.lock - Initial commit Jan 29, 2019
pubspec.yaml - Changed text requirement to child widget requirement. Mar 13, 2019

README.md

progress_button

A Material Flutter Button that supports progress and error visuals

Getting Started

ProgressButton is designed to be easy to use and customizable. Without going into much detail, you can see a demo and example code below. What more do you need from a single class package??

  • First, add dependency to your pubspec.yaml
dependencies:
  progress_button: ^0.0.2
  • Second, add progress button to your widget tree
val progressButton = ProgressButton(
    child: Text("Login"),
    onPressed: VoidCallback,
    buttonState: ButtonState.normal,
    backgroundColor: Theme.of(context).primaryColor,
    progressColor: Theme.of(context).primaryColor,
);

Of course you can change the buttonState anytime you want by using StreamBuilders and such. ProgressButton reacts accordingly to changes.

Demo 1

Demo 2

You can’t perform that action at this time.