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

CupertinoTextfield control #2417

Merged
merged 8 commits into from
Jan 17, 2024
Merged

CupertinoTextfield control #2417

merged 8 commits into from
Jan 17, 2024

Conversation

ndonkoHenri
Copy link
Contributor

@ndonkoHenri ndonkoHenri commented Jan 17, 2024

Closes #2376

TestCode:

import flet as ft


def main(page: ft.Page):
    page.window_always_on_top = True
    page.theme_mode = ft.ThemeMode.LIGHT

    page.add(
        ft.CupertinoTextField(
            bgcolor=ft.colors.BLUE_100,
            shadow=ft.BoxShadow(color=ft.colors.RED_400, blur_radius=5, spread_radius=5),
            on_change=lambda e: print("CupertinoTextField change = ", e.control.value),
            placeholder_text="Enter text here",
            suffix=ft.Icon(ft.icons.EDIT),
            suffix_visibility_mode=ft.VisibilityMode.EDITING,
        ),
    )


ft.app(target=main)

@FeodorFitsner FeodorFitsner merged commit c20e168 into main Jan 17, 2024
2 checks passed
@ndonkoHenri ndonkoHenri deleted the cupertino-textfield branch January 17, 2024 22:00
zrr1999 pushed a commit to zrr1999/flet that referenced this pull request Jul 17, 2024
* adaptive prop

* added CupertinoTextField

* reformat cupertino_textfield.py

* TextField.show_cursor

* reformat

* decoration props

* parseVisibilityMode

* export VisibilityMode
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

Successfully merging this pull request may close these issues.

CupertinoTextField control
2 participants