progessloadingbutton

Message Awesome Flutter GitHub downloads GitHub issues GitHub watchers

progessloadingbutton is a Flutter package with a simple implementation of an animated loading button, complete with success animations.

Gif demo

Getting Started

Follow these steps to use this package

Add dependency

dependencies:
  progessloadingbutton: ^0.0.1

Add import package

import 'package:progessloadingbutton/loadingbutton.dart';

Easy to use

Simple example of use Progess loading button
Put this code in your project at an screen and learn how it works 😊

LoadingButton(
              type: LoadingButtonType.color,
              // Content inside the button when the button state is idle.
              idleStateWidget: const Text(
                'Elevated button',
                style: TextStyle(
                  color: Colors.black,
                ),
              ),
              useEqualLoadingStateWidgetDimension: true,
              // Whether or not to animate the width of the button. Default is `true`.
              // If this is set to `false`, you might want to set the `useEqualLoadingStateWidgetDimension` parameter to `true`.
              useAnimation: true,
              loadingType: LoadingType.circleSpinIndicator,
              // If you want a fullwidth size, set this to double.infinity
              width: 150.0,
              height: 40.0,
              buttonColor: Colors.blueAccent,
              loadingColor: Colors.white,
              onPressed: (){},
            ),

Source

Source code and example of this library can be found in git:

$ git clone https://github.com/letienkhang/progessloadingbutton.git

Libraries

loadingbutton