flutter_smart_select icon indicating copy to clipboard operation
flutter_smart_select copied to clipboard

S2Choice, selected property is not working. When I try to put all values as selected, there is no changes

Open Kasiyliy opened this issue 4 years ago • 2 comments

List<DateTime> _times = []; .... boxes = widget.carwash.boxes .map((e) => S2Choice<Box>( value: e, title: e.name, )) .toList(); times = buttonListGenerator() .map((e) => S2Choice<DateTime>( value: e, title: DateHelper.getTime(e), selected: true, )) .toList(); .... SmartSelect<DateTime>.multiple( title: 'Времена', modalFilter: true, value: _times, modalFilterHint: 'Ищите время', placeholder: 'Выберите время', onChange: (state) { _times = state.value; }, choiceItems: times, modalType: S2ModalType.bottomSheet, tileBuilder: (context, state) { return S2Tile.fromState( state, isTwoLine: true, loadingText: "Загружается", leading: Container( width: 40, alignment: Alignment.center, child: const Icon(Icons.access_time_outlined), ), ); }, ),

Kasiyliy avatar Jan 01 '21 20:01 Kasiyliy

Has this problem been resolved.?

untillnesss avatar May 24 '21 05:05 untillnesss

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