Closed rmahmadkhan closed 3 years ago
If we write just one letter in the Text(), it just place it outside the border.
Text()
See code:
DottedBorder( borderType: BorderType.Circle, padding: EdgeInsets.all(15), child: Text('1'), )
The same code if I change BorderType.Circle to BorderType.Oval or BorderType.Rect outputs:
BorderType.Circle
BorderType.Oval
BorderType.Rect
DottedBorder
SizedBox
Text
Center
SizedBox( width: 30, height: 30, child: DottedBorder( borderType: BorderType.Circle, child: Center(child: Text('1')), ), )
So, here's the output now:
Please open this issue.
Originally posted by @rmahmadkhan in https://github.com/ajilo297/Flutter-Dotted-Border/issues/2#issuecomment-893264505
Hey, this issue still persists in the case of BorderType.Circle.
If we write just one letter in the
Text()
, it just place it outside the border.See code:
The same code if I change
BorderType.Circle
toBorderType.Oval
orBorderType.Rect
outputs:I solved this by wrapping
DottedBorder
insideSizedBox
and then wrapping theText
withCenter
So, here's the output now:
Please open this issue.
Originally posted by @rmahmadkhan in https://github.com/ajilo297/Flutter-Dotted-Border/issues/2#issuecomment-893264505