1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] How to replace SizedBox with the new Gap widget for spacing?

Discussão em 'Mobile' iniciado por Stack, Outubro 10, 2024 às 02:22.

  1. Stack

    Stack Membro Participativo

    I've been using SizedBox in Flutter to add spacing between widgets by specifying width and height, like this:

    SizedBox(height: 20), SizedBox(width: 10),

    I recently came across the Gap widget, which seems like a more concise way to handle spacing. How can I effectively replace SizedBox with Gap in my Flutter project? What are the main differences or advantages of using Gap over SizedBox?

    Continue reading...

Compartilhe esta Página