flutter_smart_select icon indicating copy to clipboard operation
flutter_smart_select copied to clipboard

activeTitleStyle doesn't work

Open Okayo18 opened this issue 5 years ago • 2 comments

choiceConfig: SmartSelectChoiceConfig( isGrouped: true, glowingOverscrollIndicatorColor: kPrimaryColor, style: SmartSelectChoiceStyle( activeColor: kPrimaryColor, checkColor: Colors.white70, activeTitleStyle: TextStyle( color: Colors.white70 ), ) // secondaryBuilder: (context, item) => CircleAvatar( // backgroundColor: kPrimaryColor, // child: Text('H') // ) ),

#activeTitleStyle color doesn't work !

Okayo18 avatar May 27 '20 08:05 Okayo18

Hi @Okayo18, I apologize for this long response.

You can use choiceTitleBuilder to build the custom choice title widget

SmartSelect<T>.[single|multiple](
  ...,
  choiceTitleBuilder: (context, item, filter) {
    return S2Text(
      text: item.title,
      style: TextStyle(
        color: item.selected ? Colors.blueAccent : Colors.black54
      ),
      highlight: filter,
      highlightColor: Colors.redAccent.withOpacity(.7),
    );
  },
);

davigmacode avatar Oct 10 '20 04:10 davigmacode

I released https://pub.dev/packages/flutter_awesome_select with fixed null safety. Could you check that everything works for you?

vasilich6107 avatar Nov 12 '21 23:11 vasilich6107

Hi everyone,

I'm really sorry for not maintaining the smart_select package in a long time. It's been a great project, but it's become too difficult for me to maintain, especially since I've been going through a tough time for the past few years.

In its place, I've released a new package called choice. The combination to smart_select and chips_choice with cleaner, more flexible, and composable API for creating inline or prompted choice widgets with single or multiple selection.

I hope you'll check out choice. I think you'll find it to be a great replacement for smart_select.

Thanks for your understanding.

davigmacode avatar Aug 26 '23 11:08 davigmacode