Skip to content

A BoxBorder like Border but draw part of the border according to the progress, supported circle, rect, rectangle

License

Notifications You must be signed in to change notification settings

shirne/progress_border

Repository files navigation

ProgressBorder

pub package

A BoxBorder like Border but draw part of the border according to the progress, supported circle, rect, rectangle.

Features

  • βœ… Draw part of border
  • βœ… Supported circle, reactangle
  • βœ… Background Border under progress border
  • 🚧 PathMetric cache
  • 🚧 Custom Paint

Preview

ProgressBorder
toast

Getting started

flutter pub add progress_border

Usage

Container(
    width: 100,
    height: 100,
    decoration: BoxDecoration(
        color: Colors.blue.withAlpha(100),
        border: ProgressBorder.all(
        color: Colors.blue,
        width: 8,
        progress: animationController.value,
        ),
    ),
);

More usage see /example folder.

Additional information

To use this library in versions lower than Flutter 3.7, please specify the version number as 0.0.x.

About

A BoxBorder like Border but draw part of the border according to the progress, supported circle, rect, rectangle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •