diff --git a/example/lib/main.dart b/example/lib/main.dart index d0c2b136..f372d2e0 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -84,6 +84,7 @@ class _MyAppState extends State { Locale("ur"), Locale("uz"), Locale("vi"), + Locale("fa"), Locale("zh") ], localizationsDelegates: [ diff --git a/lib/selection_dialog.dart b/lib/selection_dialog.dart index 176d0ee2..0c5984d3 100644 --- a/lib/selection_dialog.dart +++ b/lib/selection_dialog.dart @@ -145,7 +145,7 @@ class _SelectionDialogState extends State { 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, @@ -158,12 +158,15 @@ class _SelectionDialogState extends State { ), 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, + ), ), ), ],