Search packages, repositories and app categories

animated_loading_border cover
Package detailsv0.0.2

animated_loading_border

A package that gives us a modern way to show animated border as a placeholder while loading our widget with easy customization and ready to use.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
2.6K
Likes
88
Pub points
150

Install package

flutter pub add animated_loading_border

Package Overview

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

A Flutter package that provides an animated border as a loading placeholder, offering a modern and customizable visual indicator during widget loading. It seamlessly integrates into UIs across multiple platforms, allowing developers to easily apply dynamic borders with smooth animations. The package is designed for simplicity, requiring minimal setup while supporting extensive customization options like color, thickness, and animation speed. Ideal for enhancing user experience during asynchronous operations.

Use cases

  • Loading state indicators
  • Placeholder widgets in lists
  • Form submission feedback
  • Image or data loading states
  • Interactive component previews

Key features

  • Customizable border color and width
  • Smooth animated border effects
  • Cross-platform compatibility
  • Easy integration with existing widgets
  • Configurable animation speed and duration

Suitable for

  • Developers seeking modern loading visuals
  • UI/UX designers focusing on micro-interactions
  • Apps with frequent async data loading
  • Projects requiring lightweight placeholders
  • Teams prioritizing consistent loading feedback

Considerations

  • Limited to border-based loading indicators
  • May require additional styling for complex layouts
  • Animation performance depends on device capabilities
  • Not suitable for non-border loading patterns
  • Requires manual handling of loading state logic

Original README

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

animated_loading_border

Flutter Website Dart Website MIT License

Key Definition

  • A package that gives us a modern way to show animated border as a placeholder while loading our widget with easy customization and ready to use.

Preview

animated_loading_border animated_loading_border

Basic Usage

Import it to your project file

import 'package:animated_loading_border/animated_loading_border.dart';

And add it in its most basic form like it:

AnimatedLoadingBorder(
  child: Container(),
  controller: (animationController) {
     // Here we get animationController     
  },
);
Required parameters of AnimatedLoadingBorder

Parameter Description
Widget child The child contained by the AnimatedLoadingBorder
Optional parameters of AnimatedLoadingBorder

Parameter Default Description
ValueChanged? controller -- Callback that gives the AnimationController of the AnimatedLoadingBorder
Duration duration Duration(seconds: 4) Defines the animation duration
double cornerRadius 0.0 Defines the corner radius of the border
double borderWidth 1 Defines the width of the border
Color borderColor Colors.black Defines the color of the border
Color trailingBorderColor Colors.black Defines the color for the trailing part of the border
EdgeInsets padding EdgeInsets.zero Used to add child widget padding
bool startWithRandomPosition true Used to set starting position of SweepGradient
bool isTrailingTransparent true Used to set starting color of SweepGradient
Guideline for contributors

  • Contribution towards my repository is always welcome, i request contributors to create a pull request for development.
Guideline to report an issue/feature request

It would be great for me if the reporter can share the below things to understand the root cause of the issue.

  • Library version
  • Code snippet
  • Logs if applicable
  • Device specification like (Manufacturer, OS version, etc)
  • Screenshot/video with steps to reproduce the issue
  • Library used

LICENSE!

animated_loading_border is MIT-licensed.

Categories

Source repository

Projects using this package

No data available yet.