Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yellow underlines under text in a bottom sheet #183

Open
jlb2-abc opened this issue Dec 26, 2024 · 0 comments
Open

Yellow underlines under text in a bottom sheet #183

jlb2-abc opened this issue Dec 26, 2024 · 0 comments

Comments

@jlb2-abc
Copy link

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant