[Python] How to delete margins or spaces or padding between text vertically in flets

Discussão em 'Python' iniciado por Stack, Janeiro 19, 2025.

  1. Stack

    Stack Membro Participativo

    question: I have 2 Text() inside page.control, then I run it but I found margin/distance between Text(), I want to remove it

    code

    from flet import *
    def main(page: Page):
    page.controls = [
    Text("hello world"),
    Text("hello world")
    ]
    page.update()
    app(main)


    code and output: images

    I tried looking for a certain attribute but I was confused

    Continue reading...

Compartilhe esta Página