ajilo297 / Flutter-Dotted-Border

A Flutter package to easily add dashed borders around widgets
https://pub.dev/packages/dotted_border
MIT License
295 stars 63 forks source link

How can I disable one side of the border #22

Open ahmedtanjim opened 2 years ago

ahmedtanjim commented 2 years ago

I want to disable one Sid of the border, how can do that?

einkaaf commented 1 year ago

it is my question too ! any idea ?

I want to disable one Sid of the border, how can do that?

SharbelOkzan commented 8 months ago

Same problem here. I also see that https://github.com/ajilo297/Flutter-Dotted-Border/issues/11 requested the same.

hungvu193 commented 8 months ago

a workaround can be be:

                   DottedBorder(
                             color: const Color(0xff90A4AE),
                            customPath: (size) {
                              return Path()
                                ..moveTo(0, 20)
                                ..lineTo(size.width, 20);
                            },
                            child: Padding(
                              padding: const EdgeInsets.all(16.0),
                              child: Container(),
                            ),
                          )