animated_loading_border 0.0.2

SDKflutter
Platformandroidioswindowslinuxmacosweb

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.

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


ParameterDescription
Widget childThe child contained by the AnimatedLoadingBorder

Optional parameters of AnimatedLoadingBorder


ParameterDefaultDescription
ValueChanged? controller--Callback that gives the AnimationController of the AnimatedLoadingBorder
Duration durationDuration(seconds: 4)Defines the animation duration
double cornerRadius0.0Defines the corner radius of the border
double borderWidth1Defines the width of the border
Color borderColorColors.blackDefines the color of the border
Color trailingBorderColorColors.blackDefines the color for the trailing part of the border
EdgeInsets paddingEdgeInsets.zeroUsed to add child widget padding
bool startWithRandomPositiontrueUsed to set starting position of SweepGradient
bool isTrailingTransparenttrueUsed 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.