Border being drawn before child widget causing it to disappear beneath it when adding padding to borderPadding property
I was using your package, and I wanted to add a border around a TextField. I was going for something like this where the dashed lines are inside the child widget:
I figured out you can use the borderPadding property to control this, but when I add the padding the border goes beneath the child widget and disappears. This can be easily fixed if you just swap the two child widgets of the stack, I tested it already and it works.
Is there a reason why it is like this?
@DeadlockOfDeath That's a good idea actually. I will consider doing it in the next iteration.
Thanks for looking at this. I am a beginner at Flutter and looking at your CustomPainter source code is educational for me.
@DeadlockOfDeath Let's keep this issue open until I can make the change. In the meantime, if you can create a PR, that would help as well.
I don't really know how GitHub works to be honest but I'll try.
I just made a pull request, this is my first time. Did I do it right?
Closed by #39