en flutter

Flutter Espaciado en Lista de columna

Column, spacing

Cuando queremos un espacio entre los hijos children del widget Column, normalmente usan SizeBox, pero con Wrap se puede usar un atributo para el spaceado entre los hijos

Wrap(
  spacing: 20, // to apply margin in the main axis of the wrap
  runSpacing: 20, // to apply margin in the cross axis of the wrap
  children: <Widget>[
     Text('child 1'),
     Text('child 2')
  ]
)

Escriba un comentario

Comentario

  1. Hello! I just wish to give you a big thumbs up for the great info you have here on this post. I will be coming back to your site for more soon. Cilka Connor Ambrosius

  2. Nice read, I just passed this onto a colleague who was doing some research on that. And he just bought me lunch as I found it for him smile Therefore let me rephrase that: Thank you for lunch! Adora Rickie Marjory