We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to center text in dropdown component and it's not working.
import flet as ft
def main(page: ft.Page): dd = ft.Dropdown( label = 'Select an option', options = [ ft.dropdown.Option(key=1, text='Option 1'), ft.dropdown.Option(key=2, text='Option 2'), ft.dropdown.Option(key=3, text='Option 3'), ft.dropdown.Option(key=4, text='Option 4'), ft.dropdown.Option(key=5, text='Option 5', disabled=True) ],
alignment=ft.alignment.center, ) page.add(dd)
Run the code
Text "Choose your option" on the center of the object.
[Upload media here]
macOS
Sonoma 14.5
Version: 0.24.0.dev3196
No, it isn't
No response
[Paste your logs here]
It was working on 0.22 version
The text was updated successfully, but these errors were encountered:
Culprit:
flet/packages/flet/lib/src/controls/dropdown.dart
Line 175 in 90436bb
Sorry, something went wrong.
Dropdown.alignment
ndonkoHenri
Successfully merging a pull request may close this issue.
Duplicate Check
Describe the bug
I'm trying to center text in dropdown component and it's not working.
Code sample
import flet as ft
def main(page: ft.Page):
dd = ft.Dropdown(
label = 'Select an option',
options = [
ft.dropdown.Option(key=1, text='Option 1'),
ft.dropdown.Option(key=2, text='Option 2'),
ft.dropdown.Option(key=3, text='Option 3'),
ft.dropdown.Option(key=4, text='Option 4'),
ft.dropdown.Option(key=5, text='Option 5', disabled=True)
],
To reproduce
Run the code
Expected behavior
Text "Choose your option" on the center of the object.
Screenshots / Videos
Screenshots / Video demonstration
[Upload media here]
Operating System
macOS
Operating system details
Sonoma 14.5
Flet version
Version: 0.24.0.dev3196
Regression
No, it isn't
Suggestions
No response
Logs
Logs
[Paste your logs here]
Additional details
It was working on 0.22 version
The text was updated successfully, but these errors were encountered: