Skip to content

Commit 72959c6

Browse files
committed
feat: make chat text selectable
1 parent 2185e54 commit 72959c6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/app/modules/chat/presentation/widgets/chat_bubble.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class ChatBubble extends StatelessWidget {
3232
? null
3333
: PotProfileImage(user: user!, pot: pot),
3434
name: user?.name,
35-
child: Text(
35+
child: SelectableText(
3636
message,
3737
style: TextStyles.description.copyWith(
3838
color: user == null ? Palette.primaryLight : Palette.textGrey,

lib/app/modules/chat/presentation/widgets/fofo_bubble.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ class FofoBubble extends StatelessWidget {
5353
child: Column(
5454
crossAxisAlignment: CrossAxisAlignment.stretch,
5555
children: [
56-
Text(
56+
SelectableText(
5757
message.content.split('\n').first.replaceAll('**', '').trim(),
5858
style: TextStyles.title4.copyWith(color: Palette.textGrey),
5959
),
6060
const SizedBox(height: 8),
61-
Text(
61+
SelectableText(
6262
message.content.split('\n').sublist(1).join('\n').trim(),
6363
style: TextStyles.description.copyWith(color: Palette.textGrey),
6464
),

0 commit comments

Comments
 (0)