0 purchases
progessloadingbutton
progessloadingbutton #
progessloadingbutton is a Flutter package with a simple implementation of an animated loading button, complete with success animations.
Getting Started #
Follow these steps to use this package
Add dependency #
dependencies:
progessloadingbutton: ^0.0.1
copied to clipboard
Add import package #
import 'package:progessloadingbutton/loadingbutton.dart';
copied to clipboard
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: (){},
),
copied to clipboard
Source #
Source code and example of this library can be found in git:
$ git clone https://github.com/letienkhang/progessloadingbutton.git
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.