From 16ed4a29b115e30366676ccc44e25f0063cea5d0 Mon Sep 17 00:00:00 2001 From: sienna-sterling <112006749+sienna-sterling@users.noreply.github.com> Date: Fri, 11 Apr 2025 16:00:53 -0400 Subject: [PATCH] 2426-space-popup-tweaks (#2429) * fix: Added placeholder, changed copy icon to share icon and fixed room if * generated * chore: move copy into intl file --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: ggurdin --- assets/l10n/intl_en.arb | 4 +++- .../pangea_public_room_bottom_sheet.dart | 19 ++++++++++++++----- 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index 37c7031ed..cdc222276 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -4861,5 +4861,7 @@ "emptyChatWarningTitle": "Chat is empty", "emptyChatWarningDesc": "You haven't invited anyone to your chat. Go to Chat settings to invite your contacts or the Bot. You can also do this later.", "areYouLikeMe": "Are you like me?", - "tryAgainLater": "Too many attempts made. Please try again in 5 minutes." + "tryAgainLater": "Too many attempts made. Please try again in 5 minutes.", + "enterSpaceCode": "Enter the Space Code", + "shareSpaceLink": "Share link to space" } \ No newline at end of file diff --git a/lib/pangea/public_spaces/pangea_public_room_bottom_sheet.dart b/lib/pangea/public_spaces/pangea_public_room_bottom_sheet.dart index 8c8c9f742..47c463eb0 100644 --- a/lib/pangea/public_spaces/pangea_public_room_bottom_sheet.dart +++ b/lib/pangea/public_spaces/pangea_public_room_bottom_sheet.dart @@ -229,12 +229,21 @@ class PangeaPublicRoomBottomSheetState Expanded( child: TextField( controller: _codeController, - decoration: const InputDecoration( + decoration: InputDecoration( border: InputBorder.none, focusedBorder: InputBorder.none, enabledBorder: InputBorder.none, errorBorder: InputBorder.none, disabledBorder: InputBorder.none, + hintText: + L10n.of(context).enterSpaceCode, + contentPadding: + const EdgeInsets.symmetric( + horizontal: 16.0, + ), + hintStyle: TextStyle( + color: Theme.of(context).hintColor, + ), ), ), ), @@ -294,12 +303,12 @@ class PangeaPublicRoomBottomSheetState mainAxisAlignment: MainAxisAlignment.center, children: [ const Icon( - Icons.copy_outlined, + Icons.share_outlined, size: 20.0, ), Flexible( child: Text( - roomAlias, + L10n.of(context).shareSpaceLink, overflow: TextOverflow.ellipsis, ), ), @@ -336,12 +345,12 @@ class PangeaPublicRoomBottomSheetState mainAxisAlignment: MainAxisAlignment.center, children: [ const Icon( - Icons.copy_outlined, + Icons.share_outlined, size: 20.0, ), Flexible( child: Text( - roomAlias, + L10n.of(context).shareSpaceLink, overflow: TextOverflow.ellipsis, ), ),