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

[AutoSuggestBox] Item Builder #869

Closed
valientegaston opened this issue Jun 25, 2023 · 1 comment · Fixed by #873
Closed

[AutoSuggestBox] Item Builder #869

valientegaston opened this issue Jun 25, 2023 · 1 comment · Fixed by #873
Labels
enhancement New feature or request

Comments

@valientegaston
Copy link

Hi! Is there any way to change the textstyle of the suggestions? Thank you!
Captura de Pantalla 2023-06-25 a la(s) 01 00 22

@bdlukaa
Copy link
Owner

bdlukaa commented Jul 5, 2023

Hello! You can use AutoSuggestBoxItem.child property to render any widget in the auto suggest box overlay tile.

AutoSuggestBox(
  items: [
    AutoSuggestBoxItem(
      value: 0,
      label: '0',
      child: Text('The number is 0'),
    ),
  ], 
)

I will keep this open because auto suggest box still misses some customization enhancements.

  • Semantic label
  • Item builder

@bdlukaa bdlukaa added the enhancement New feature or request label Jul 5, 2023
@bdlukaa bdlukaa changed the title AutoSuggestBox - Change suggestions textStyle. [AutoSuggestBox] Item Builder Jul 5, 2023
@bdlukaa bdlukaa mentioned this issue Jul 5, 2023
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants