How to add line dash in Flutter As a workaround, in your case, you can do something like this and use it const MySeparator()