dotted_border 1.0.0 copy "dotted_border: ^1.0.0" to clipboard
dotted_border: ^1.0.0 copied to clipboard

outdated

A flutter package to let users easily add a rectanfular dashed border around any widget.

Dotted Border #

pub package

A flutter package to easily added dotted borders around widgets.

Usage #

To use this package, add dotted_border as a dependency in your pubspec.yaml file.

Example #

Wrap DottedBorder widget around the child widget

DottedBorder(
    color: Colors.black,
    strokeWidth: 1,
    child: FlutterLogo(size: 148),
)

BorderTypes #

This package supports the following border types at the moment

  • RectBorder
  • RRectBorder
  • CircleBorder
  • OvalBorder

Dash Pattern #

Now you can also specify the Dash Sequence by passing in an Array of Doubles

DottedBorder(
    dashPattern: [6, 3, 2, 3] 
    child: ...
);

The above code block will render a dashed border with the following pattern:

  • 6 pixel wide dash
  • 3 pixel wide space
  • 2 pixel wide dash
  • 3 pixel wide space

Credits #

1.48k
likes
0
points
573k
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter package to let users easily add a rectanfular dashed border around any widget.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, path_drawing

More

Packages that depend on dotted_border