Skip to content
Discussion options

You must be logged in to vote

You can set it through the SegmentedButton.style or the Theme.segmented_button_theme props:

import flet as ft


def main(page: ft.Page):
    page.theme_mode = ft.ThemeMode.LIGHT
    # page.theme = page.dark_theme = ft.Theme(
    #     segmented_button_theme=ft.SegmentedButtonTheme(
    #         style=ft.ButtonStyle(...),
    #     )
    # )

    page.add(
        ft.SegmentedButton(
            selected_icon=ft.Icon(ft.Icons.CHECK_SHARP),
            selected=["2"],
            allow_multiple_selection=False,
            segments=[
                ft.Segment(
                    value="1",
                    label=ft.Text("Item One"),
                    icon=ft.Icon(ft.Icons.LOOKS_ONE)…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Corneille-B
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
help wanted Extra attention is needed
2 participants