diff --git a/lib/features/manage_account/presentation/language_and_region/widgets/language_menu_popup_dialog_widget.dart b/lib/features/manage_account/presentation/language_and_region/widgets/language_menu_popup_dialog_widget.dart index 06c3a55e56..6a55219bf0 100644 --- a/lib/features/manage_account/presentation/language_and_region/widgets/language_menu_popup_dialog_widget.dart +++ b/lib/features/manage_account/presentation/language_and_region/widgets/language_menu_popup_dialog_widget.dart @@ -34,57 +34,55 @@ class _LanguageMenuPopupDialogWidgetState extends State setState(() => _visible = false) + ), child: PortalTarget( - visible: _visible, - portalFollower: GestureDetector( - behavior: HitTestBehavior.opaque, - onTap: () => setState(() => _visible = false) - ), - child: PortalTarget( - anchor: const Aligned( + anchor: const Aligned( + follower: Alignment.topRight, + target: Alignment.bottomRight, + widthFactor: 1, + backup: Aligned( follower: Alignment.topRight, target: Alignment.bottomRight, widthFactor: 1, - backup: Aligned( - follower: Alignment.topRight, - target: Alignment.bottomRight, - widthFactor: 1, - ), ), - portalFollower: LanguageRegionOverlay( - listSupportedLanguages: LocalizationService.supportedLocales, - localeSelected: widget.languageSelected, - maxWidth: widget.maxWidth, - onSelectLanguageAction: (locale) { - widget.onSelectLanguageAction(locale); - setState(() => _visible = false); - }, + ), + portalFollower: LanguageRegionOverlay( + listSupportedLanguages: LocalizationService.supportedLocales, + localeSelected: widget.languageSelected, + maxWidth: widget.maxWidth, + onSelectLanguageAction: (locale) { + setState(() => _visible = false); + widget.onSelectLanguageAction(locale); + }, + ), + visible: _visible, + child: TMailButtonWidget( + text: widget.languageSelected.getLanguageNameByCurrentLocale(context), + icon: _imagePaths.icDropDown, + textStyle: const TextStyle( + fontSize: 16, + fontWeight: FontWeight.normal, + color: Colors.black + ), + maxWidth: widget.maxWidth, + iconAlignment: TextDirection.rtl, + borderRadius: 10, + expandedText: true, + backgroundColor: AppColor.colorItemSelected, + padding: const EdgeInsetsDirectional.all(10), + border: Border.all( + color: AppColor.colorInputBorderCreateMailbox, + width: 0.5, ), - visible: _visible, - child: TMailButtonWidget( - text: widget.languageSelected.getLanguageNameByCurrentLocale(context), - icon: _imagePaths.icDropDown, - textStyle: const TextStyle( - fontSize: 16, - fontWeight: FontWeight.normal, - color: Colors.black - ), - maxWidth: widget.maxWidth, - iconAlignment: TextDirection.rtl, - borderRadius: 10, - expandedText: true, - backgroundColor: AppColor.colorItemSelected, - padding: const EdgeInsetsDirectional.all(10), - border: Border.all( - color: AppColor.colorInputBorderCreateMailbox, - width: 0.5, - ), - onTapActionCallback: () => setState(() => _visible = true) - ) + onTapActionCallback: () => setState(() => _visible = true) ) - ), + ) ); } } \ No newline at end of file