Skip to content

Inconsistent UI display between iOS and macOS #2472

@qjasn

Description

@qjasn

Description

Inconsistent UI display between iOS and macOS
macOS show the element,but ios not

Code example to reproduce the issue:

from flet import *


def main(page: Page):
    page.add(Row(
        controls=[
            MenuBar([SubmenuButton(
                content=Text("New"),
                leading=Icon(icons.ADD),
                on_focus=lambda e: print(e),
                controls=[
                    SubmenuButton(
                        content=Text("Function"),
                        leading=Icon(icons.FUNCTIONS),
                        controls=[
                            MenuItemButton(

                                on_hover=None,
                                content=Text("Function")
                            )
                        ]
                    ),
                    MenuItemButton(
                        content=Text("Equation"),
                        leading=Icon(icons.FUNCTIONS),
                        on_click=lambda e: print("add e"),
                        on_hover=None,
                    )
                ]
            )])
        ],
        alignment=MainAxisAlignment.END
    ))


app(main)

Describe the results you received:
What I see in the macOS:
7ABF538B-E687-4041-B088-E052EFE4726E
What I see in the iOS
276E0355-D61A-4C4B-A5AD-A71B742D594B

Describe the results you expected:
How I can make the display a same thing?

Additional information you deem important (e.g. issue happens only occasionally):
Almost 100% happen

Flet version (pip show flet):

0.19.0

Operating system:
iOS macOS

Additional environment details:
My macOS’s python version is 3.9.6,but my iOS flet app’s python version is 3.11.6,will this lead to the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions