How to add borders to a widget in Flutter

Share this post

Adding a border to a widget is very easy in Flutter. We just need to wrap the widget in a Container and add BoxDecoration to it. Let’s say we want to make a square with blue borders all we need to do is: Which will look like this: What if the border is too “pointy” […]