Search packages, repositories and app categories

rounded_loading_button_plus cover
Package detailsv3.0.1

rounded_loading_button_plus

A simple implementation of an animated loading button widget for Flutter

AndroidiOSWebmacOSWindowsLinux
30-day downloads
2.7K
Likes
79
Pub points
155

Install package

flutter pub add rounded_loading_button_plus

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter package that provides an animated loading button widget with smooth transitions and customizable styling. It enhances user experience by visually indicating loading states during actions like form submissions or API calls. The button supports both circular and rounded rectangular shapes, with options to customize colors, size, and animation speed. Built for simplicity and performance, it integrates seamlessly into any Flutter app across multiple platforms.

Use cases

  • Form submission with loading state
  • API call triggers
  • User authentication flows
  • Interactive UI elements
  • Progress indication in mobile apps

Key features

  • Animated loading transition
  • Customizable button shape
  • Configurable colors and sizes
  • Cross-platform support
  • Simple integration with onPressed
  • Smooth animation effects

Suitable for

  • Developers building interactive forms
  • Apps requiring visual feedback during async operations
  • UI-focused Flutter projects
  • Beginner to intermediate Flutter developers
  • Projects targeting Android, iOS, Web, macOS, Windows, and Linux

Considerations

  • Requires minimal setup for basic usage
  • Limited customization beyond core properties
  • No built-in error handling
  • Best suited for simple loading scenarios
  • Not ideal for complex state management

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

rounded_loading_button_plus

pub package build codecov style: effective dart License: MIT Awesome Flutter

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

Installation

Add this to your pubspec.yaml:

dependencies:
    rounded_loading_button_plus: ^2.0.8

Usage

Import
import 'package:rounded_loading_button_plus/rounded_loading_button_plus.dart';
Simple Implementation
final RoundedLoadingButtonController _btnController = RoundedLoadingButtonController();

void _doSomething() async {
    Timer(Duration(seconds: 3), () {
        _btnController.success();
    });
}

RoundedLoadingButton(
    child: Text('Tap me!', style: TextStyle(color: Colors.white)),
    controller: _btnController,
    onPressed: _doSomething,
)

The Rounded Loading Button has many configurable properties, including:

  • duration - The duration of the button animation
  • loaderSize - The size of the CircularProgressIndicator
  • animateOnTap - Whether to trigger the loading animation on the tap event
  • resetAfterDuration - Reset the animation after specified duration, defaults to 15 seconds
  • errorColor - The color of the button when it is in the error state
  • successColor - The color of the button when it is in the success state
  • successIcon - The icon for the success state
  • failedIcon - The icon for the failed state

Contributions

All contributions are welcome!

Categories

Dependencies

Dependency list 1 items

Source repository

Projects using this package