custom-dropdown icon indicating copy to clipboard operation
custom-dropdown copied to clipboard

[Enhancement] Added align text issue: Align Header text and dropdown item text #71

Open hamhoney opened this issue 1 year ago • 0 comments

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 ! -- 
    );
  }

20240527_173740

Your library is very nice! We will be good friend :)

Have a nice day!

hamhoney avatar Sep 21 '24 02:09 hamhoney