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

How to Add subtitle #27

Closed
mushtaq99 opened this issue Feb 14, 2022 · 1 comment
Closed

How to Add subtitle #27

mushtaq99 opened this issue Feb 14, 2022 · 1 comment

Comments

@mushtaq99
Copy link

**as the library support single item in choiceChipLabel **
how to add subtitle in choiceChipLabel if data has subtitle [...]

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@TheAlphamerc
Copy link
Owner

@mushtaq99 you can use choiceChipBuilder to build custom choice chip and doing do you can add what you need to display there.

An example of how to use choiceChipBuilder.

choiceChipBuilder: (context, item, isSelected) {
    return Container(
       padding: EdgeInsets.symmetric(horizontal: 16, vertical: 12),
        margin: EdgeInsets.symmetric(horizontal: 10, vertical: 10),
        decoration: BoxDecoration(
           border: Border.all(
           color: isSelected! ? Colors.blue[300]! : Colors.grey[300]!,
          )),
        child: Column(
           children: [Text('Title text'), Text('Subtitle text')],
         ),
      );
 }

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

2 participants