Skip to content
This repository has been archived by the owner on Jul 20, 2022. It is now read-only.

Bugfix write to left languages #179

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ class _MyAppState extends State<MyApp> {
Locale("ur"),
Locale("uz"),
Locale("vi"),
Locale("fa"),
Locale("zh")
],
localizationsDelegates: [
Expand Down
17 changes: 10 additions & 7 deletions lib/selection_dialog.dart
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class _SelectionDialogState extends State<SelectionDialog> {
if (widget.showFlag!)
Flexible(
child: Container(
margin: const EdgeInsets.only(right: 16.0),
margin: const EdgeInsetsDirectional.only(end: 16.0),
decoration: widget.flagDecoration,
clipBehavior:
widget.flagDecoration == null ? Clip.none : Clip.hardEdge,
Expand All @@ -158,12 +158,15 @@ class _SelectionDialogState extends State<SelectionDialog> {
),
Expanded(
flex: 4,
child: Text(
widget.showCountryOnly!
? e.toCountryStringOnly()
: e.toLongString(),
overflow: TextOverflow.fade,
style: widget.textStyle,
child: Directionality(
textDirection: TextDirection.ltr,
child: Text(
widget.showCountryOnly!
? e.toCountryStringOnly()
: e.toLongString(),
overflow: TextOverflow.fade,
style: widget.textStyle,
),
),
),
],
Expand Down