Dotted line decoration is custom decoration as simple as BoxDocoration can be used in Container widget to draw dotted divider, dotted border for rectangle, oval or circle.
Preview
Installing
To use this package, add dotted_decoration as a dependency in your pubspec.yaml file.
Usage
Create a container widget and assign DottedDecoration as decoration
DottedDecoration(
shape: Shape.box,
borderRadius: BorderRadius.circular(10), //remove this to get plane rectange
),
To add circle
//make sure width & height of container is same to get perfect circle or else it will end up in ovalDottedDecoration(shape: Shape.circle, dash: <int>[1, 4]);
Parameters
Shape
Kind of outline shape, default shape is Shape.line.