buildRowForItemWidget function

Widget buildRowForItemWidget({
  1. required BuildContext context,
  2. required CustomDropDownModel model,
  3. required bool isSelected,
})

dropdown widget to be displayed Single Line

Implementation

Widget buildRowForItemWidget(
    {required BuildContext context,
    required CustomDropDownModel model,
    required bool isSelected}) {
  return Row(
    mainAxisAlignment: MainAxisAlignment.start,
    crossAxisAlignment: CrossAxisAlignment.start,
    mainAxisSize: MainAxisSize.min,
    children: [
      isSelected
          ? CommonConfigurationDropDown.of(context).itemSelectedWidgetIcon
          : CommonConfigurationDropDown.of(context).itemUnSelectedWidgetIcon,
      const SizedBox(width: 8),
      Expanded(
        child:
            buildTextViewItemStatic(text: model.valueDisplay, context: context),
      ),
    ],
  );
}