Skip to content

Layout issue #4405

Closed Answered by SebastianSosa
SebastianSosa asked this question in Q&A
Nov 20, 2024 · 2 comments · 1 reply
Discussion options

You must be logged in to vote

As said in the comment, I found a solution for my issue:

import flet as ft

def main2(page: ft.Page):

    searchArea = ft.Row(expand=1,
            vertical_alignment=ft.CrossAxisAlignment.START)

    def buildContainer(text):
        return ft.Container(
                content=ft.Text(value=text),
                alignment=ft.alignment.center,
                width=page.width * 0.4,
                bgcolor=ft.colors.BLUE,
                border_radius=ft.border_radius.all(5))

    searchColumn = ft.Column(
            [
                buildContainer("Column 1 item 1"),
                buildContainer("Column 1 item 2"),
            ],
        alignment=ft.MainAxisAlignment.START
      …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@SebastianSosa
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by SebastianSosa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants