Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.
This repository was archived by the owner on Dec 25, 2025. It is now read-only.

Yellow underlines under text in a bottom sheet  #183

@jlb2-abc

Description

@jlb2-abc

There are yellow underlines under the text in a bottom sheet :
image
here is the code :import flet as ft

def main(page: ft.Page):
# Create bottom sheet (with content directly defined inside it)
bottom_sheet = ft.CupertinoBottomSheet(
content=ft.Container(
content=ft.Column(
controls=[
# Title: Centered at the top
ft.Text(
"About us",
size=24,
weight=ft.FontWeight.BOLD,
text_align=ft.TextAlign.CENTER,
font_family="Quicksand", # Ensure font is specified
),
# Descriptive text
ft.Text(
"Welcome to our application! We aim to provide the best services and solutions "
"to meet your needs. Our team is dedicated to ensuring customer satisfaction and "
"delivering exceptional results. Here's what we offer:\n\n"
"- High-quality products\n"
"- Reliable customer support\n"
"- Continuous innovation\n"
"- A commitment to excellence\n\n"
"Thank you for choosing us. We look forward to serving you!",
size=16,
text_align=ft.TextAlign.JUSTIFY,
font_family="Quicksand", # Ensure font is specified
),
],
spacing=10, # Space between the title and the paragraph
),
padding=20,
bgcolor=ft.colors.LIGHT_BLUE_50,
border_radius=10,
width=600,
alignment=ft.alignment.top_center, # Align the container content at the top center
),
padding=ft.Padding(0, 0, 0, 250), # Add padding around the action sheet content
width=500, # Keep the desired width
height=650,
)

# Add the bottom sheet to the page (this ensures the control is in the page's control tree)
page.add(bottom_sheet)

# Open the bottom sheet after it's added to the page
page.open(bottom_sheet)

Run the app

ft.app(target=main)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions