AbdullahChauhan / custom-dropdown

Custom dropdown widget allows to add highly customizable dropdown widget in your projects. Features includes Search on list data, Network search, Multi-selection and many more.
https://pub.dev/packages/animated_custom_dropdown
BSD 3-Clause "New" or "Revised" License
158 stars 73 forks source link

canCloseOutsideBounds overlap with listItemBuilder #89

Open Punlork opened 2 months ago

Punlork commented 2 months ago

With canCloseOutsideBounds: false. This issue is fixed but I still need CloseOutsideBounds effect. @AbdullahChauhan

https://github.com/user-attachments/assets/226aeb1b-e7c2-4862-957f-d80c66684b58

listItemBuilder: (context, item, isSelected, onItemSelect) => Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: <Widget>[
          Checkbox(
            value: isSelected,
            onChanged: (_) => onItemSelect(),
          ),
          const Gap(4),
          Expanded(
            child: Text(
              item.title,
              style: context.bodyLarge(
                color: isSelected ? Theme.of(context).colorScheme.primary : null,
                weight: isSelected ? FontWeight.w600 : null,
              ),
              // maxLines: 2,
              overflow: TextOverflow.ellipsis,
            ),
          ),
        ],
      ),