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

FloatingActionButtonLocation offset #2411

Merged
merged 3 commits into from
Jan 17, 2024
Merged

FloatingActionButtonLocation offset #2411

merged 3 commits into from
Jan 17, 2024

Conversation

ndonkoHenri
Copy link
Contributor

@ndonkoHenri ndonkoHenri commented Jan 16, 2024

Test Code:

import flet as ft

def main(page: ft.Page):
    page.floating_action_button = ft.FloatingActionButton(
        content=ft.Row(
            [ft.Icon(ft.icons.ADD), ft.Text("Add")], alignment="center", spacing=5
        ),
        bgcolor=ft.colors.AMBER_300,
        shape=ft.RoundedRectangleBorder(radius=5),
        width=100,
        mini=True,
    )

    page.floating_action_button_location = (150, 100)

ft.app(target=main)

@FeodorFitsner FeodorFitsner merged commit ed672c5 into main Jan 17, 2024
@ndonkoHenri ndonkoHenri deleted the fab-offset branch January 17, 2024 08:33
@ndonkoHenri ndonkoHenri linked an issue Jan 17, 2024 that may be closed by this pull request
zrr1999 pushed a commit to zrr1999/flet that referenced this pull request Jul 17, 2024

Verified

This commit was signed with the committer’s verified signature.
zrr1999 Zhan Rongrui
* offset type

* CustomFloatingActionButtonLocation

* Prevent FAB from winking when location changed

---------

Co-authored-by: Feodor Fitsner <feodor@appveyor.com>
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.

Let FloatingActionButtonLocation accept Offset
2 participants