GotJimmy / accordion

Other
47 stars 44 forks source link

How to add label to header when header is not null #64

Closed benedict1986 closed 6 months ago

benedict1986 commented 6 months ago

Hi, thank you for building such great library. I would like to use it in my personal project. I would like to ask if there is any way to add a label similar as TextField so that when here is a widget in header in AccordionSection, I could have a label on the border of the header similar as when we type some text in TextField. Thank you

image

GotJimmy commented 6 months ago

You're welcome! You can add any widget in the header you want: AccordionSection( header: TextField() )

benedict1986 commented 6 months ago

Thank you @GotJimmy , that's very helpful. I missed it.