searchable_dropdown icon indicating copy to clipboard operation
searchable_dropdown copied to clipboard

How to give padding between seleted values

Open abhihasabe opened this issue 4 years ago • 0 comments

When i remove left side space using given below code, but we also remove space between selected values, so how to give padding between values.

selectedValueWidgetFn: (item) { return Container( transform: Matrix4.translationValues( -10, 0, 0), alignment: Alignment.centerLeft, child: (Text(item.toString()))); }

Full code :

SearchableDropdown.single( items: _dropdownMahindraModelItem, value: _selectedMahindraModel, isCaseSensitiveSearch: false, displayClearIcon: false, //hint: "Select Source *", searchHint: "Interested M&M Model *", label: Text( "Interested M&M Model *", style: TextStyle(color: Colors.black54), ), onChanged: onChangeDropdownMahindraItem, underline: Container( height: 1.0, decoration: BoxDecoration( border: Border( bottom: BorderSide( color: Colors.black38, width: 1.0))), ), isExpanded: true, selectedValueWidgetFn: (item) { return Container( transform: Matrix4.translationValues( -10, 0, 0), alignment: Alignment.centerLeft, child: (Text(item.toString()))); }, )

abhihasabe avatar Jun 16 '20 05:06 abhihasabe