-
Notifications
You must be signed in to change notification settings - Fork 130
Open
Description
Details:
multi_dropdown: ^3.0.1
Flutter (Channel stable, 3.24.5, on macOS 15.3.1 24D70 darwin-arm64, locale en-IN)
Issue:
labelStyle does not work when this property is true ie singleSelect: true
MultiDropdown(
singleSelect: true,
controller: _controller
items: my items
fieldDecoration: FieldDecoration(
showClearIcon: false,
hintText: 'Select',
borderRadius: 10,
hintStyle:
dropDownTextStyle(context),
labelStyle:
dropDownTextStyle(context),
backgroundColor: commonBackgroundColor4,
suffixIcon: const Icon(
Icons.keyboard_arrow_down,
color: colorBlack,
)),
itemBuilder: (item, index, isSelected) {
return InkWell(
onTap: isSelected,
child: Container(
padding: const EdgeInsets.all(10),
color: item.selected?Colors.grey:colorWhite,
child: Text(
item.label,
style: dropDownTextStyle(context),
),
),
);
},
enabled: true,
),
where dropDownTextStyle is
TextStyle dropDownTextStyle(BuildContext context){
return Theme.of(context).textTheme.bodyLarge!.copyWith(
fontSize: dynamicLabelTextSize,
color: colorBlack,
);
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels