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
Asked
Active
Viewed 604 times
0
-
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 Answers
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"),
),
),
),

Arman Laalfam
- 39
- 3