Skip to content

DropdownMenuItem RTL isn't working #36445

@pishguy

Description

@pishguy

in this sample code i can't set right to left texts on dropdown menus

  List<DropdownMenuItem<SessionsEntity>> buildDropdownMenuItems(List sessions) {
    List<DropdownMenuItem<SessionsEntity>> items = List();
    for (SessionsEntity session in sessions) {
      items.add(
        DropdownMenuItem(
          value: session,
          child: Directionality(
              textDirection: TextDirection.rtl,
              child: Text(session.sessionName,
                  textAlign: TextAlign.right,
                  textDirection: TextDirection.rtl,
                  style: Theme.of(context).textTheme.caption.copyWith(
                  color: Colors.black,
                  fontFamily: 'ShabnamLight'
              ))),
        ),
      );
    }
    return items;
  }

all of items are LEFT to RIGHT

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: internationalizationSupporting other languages or locales. (aka i18n)f: material designflutter/packages/flutter/material repository.found in release: 3.3Found to occur in 3.3found in release: 3.7Found to occur in 3.7frameworkflutter/packages/flutter repository. See also f: labels.has reproducible stepsThe issue has been confirmed reproducible and is ready to work onteam-designOwned by Design Languages teamtriaged-designTriaged by Design Languages team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions