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

Allow FloatingActionButton with content only #178

Closed
FeodorFitsner opened this issue Aug 11, 2022 Discussed in #176 · 3 comments
Closed

Allow FloatingActionButton with content only #178

FeodorFitsner opened this issue Aug 11, 2022 Discussed in #176 · 3 comments

Comments

@FeodorFitsner
Copy link
Contributor

Discussed in #176

Originally posted by nascin August 10, 2022
I need to change the size of the FloatingActionButton's text property, but I didn't find the text_size property. How can I change?

@FeodorFitsner FeodorFitsner added status: working on it Working on a fix for the issue and removed status: working on it Working on a fix for the issue labels Aug 11, 2022
@FeodorFitsner
Copy link
Contributor Author

It's already there.

@FeodorFitsner FeodorFitsner reopened this Aug 11, 2022
@FeodorFitsner FeodorFitsner added the status: working on it Working on a fix for the issue label Aug 11, 2022
@FeodorFitsner
Copy link
Contributor Author

But there is a bug that doesn't allow a button with content only! Reopening... :)

@FeodorFitsner
Copy link
Contributor Author

Code sample:

import flet
from flet import Column, FloatingActionButton, Page, Text

def main(page: Page):
    page.add(
        Column(
            [
                FloatingActionButton(
                    content=Text("I'm Big!", size=50), width=300, height=200
                ),
            ]
        )
    )
    page.update()

flet.app(target=main)

@FeodorFitsner FeodorFitsner changed the title Add content property to FloatingActionButton Allow FloatingActionButton with content only Aug 11, 2022
@FeodorFitsner FeodorFitsner removed the status: working on it Working on a fix for the issue label Aug 22, 2022
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