AhmedLSayed9 / dropdown_button2

Flutter's core Dropdown Button widget with steady dropdown menu and many other features.
https://pub.dev/packages/dropdown_button2
MIT License
264 stars 122 forks source link

how to change the drop down locale #310

Closed mo7amedaliEbaid closed 3 weeks ago

mo7amedaliEbaid commented 3 weeks ago

Is there any way to change the locale of this drop down button? I mean that this icon

IconStyleData(
            icon: Icon(
              Icons.arrow_drop_down_sharp,
            ),
            iconSize: 30,
            iconEnabledColor: Colors.black,
            iconDisabledColor: Colors.grey,
          )

would be right in case of english and left in case of arabic

AhmedLSayed9 commented 3 weeks ago

You can wrap DropdownButton2 with Directionality if you'd like to override the default direction.