'Flutter Wrap widget problem - spacing not working in the container widget
My Flutter App is laggy right now so here's the drawing:
My current three container is like this: Current Container
I wanted to spacing the containers like this: Desired Container
I tried to use Wrap like this in the body.
body:Wrap(Spacing:32, ...
but it's not working. any solution may help
Solution 1:[1]
Wrap(spacing: 32, ... should work, if it doesn't, something else might be incorrect. Although you could just use margin property in your Container, like this:
Container(
margin: EdgeInsets.symmetric(vertical: 16, horizontal: 32),
....
This should create some blank space around each container.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | WSBT |
