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

[Flutter] How do I only apply padding to the text in a TextField in Flutter?

Discussão em 'Mobile' iniciado por Stack, Outubro 26, 2024 às 06:32.

  1. Stack

    Stack Membro Participativo

    Without padding I get this result:

    [​IMG]

    With something like this

    Padding(padding: EdgeInsets.all(20.0), child: TextField())


    I get the following result:

    [​IMG]

    It might be a bit hard to see, but you only have to look at the red badge across the edge to realise what I mean.

    I would like to only move the text with my padding, but in reality the whole TextField has the padding applied, i.e. that the underline moves with the padding, but I would like to have the underline still go across the whole view, that only the text inside the TextField is affected by the padding.

    Continue reading...

Compartilhe esta Página