0

I am using endDrawer and inside it I used Expansion Tile,But My Laguage is persian and it's Direction is rtl. Expantion Tile's deafualt Direction is ltr but I want to be rtl

  • Can you add a couple of screenshots to illustrate the issue? I think I understand you, but there are decorators on the collapsed Expansion Tile view and I think you need to also consider those. – Curt Eckhart Dec 03 '21 at 16:11
  • Is this answer helpful? https://stackoverflow.com/questions/50535185/right-to-left-rtl-in-flutter Or this article? https://docs.flutter.dev/development/accessibility-and-localization/internationalization – Curt Eckhart Dec 03 '21 at 16:20

1 Answers1

0

You must wrap ExpansionTile widget with Directionality and set textDirection: TextDirection.rtl.

child: Directionality(
          textDirection: TextDirection.rtl,
          child: ExpansionTile(
            leading: ImageContainer(imageAddress: imageAddress),
            title: const Text(
              volleyballChampions,
              textDirection: TextDirection.rtl,
            ),
            subtitle: const Text(
              testDateText,
              textDirection: TextDirection.rtl,
            ),
            trailing: GestureDetector(
              onTap: () {
                // TODO: develop dropdown container
              },
              child: SvgPicture.asset("assets/arrow_down.svg"),
            ),
          ),
        ),