custom-dropdown
custom-dropdown copied to clipboard
[Enhancement] Added align text issue: Align Header text and dropdown item text #71
Hi, @AbdullahChauhan .
I modified your animated_custom_dropdown library because I need to feature align to text.
It's default value is TextAlign.start.
Usage
@override
Widget build(BuildContext context) {
return CustomDropdown<String>(
hintText: 'Select job role',
items: _list,
initialItem: _list[0],
excludeSelected: false,
onChanged: (value) {
log('SimpleDropdown onChanged value: $value');
},
textAlign: TextAlign.center, // Here ! --
);
}
Your library is very nice! We will be good friend :)
Have a nice day!