mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-01-15 10:38:41 +00:00
make text selectable #10
This commit is contained in:
parent
6be7044a39
commit
34ff5c05ec
2 changed files with 2 additions and 2 deletions
|
|
@ -28,7 +28,7 @@ class FormattedStringWidget extends StatelessWidget {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Text(
|
||||
return SelectableText(
|
||||
formatString(longString),
|
||||
style: TextStyle(fontSize: 18, color: Colors.black),
|
||||
textAlign: TextAlign.center,
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ class ChatListEntry extends StatelessWidget {
|
|||
83, 68, 137, 255), // Set the background color
|
||||
borderRadius: BorderRadius.circular(12.0), // Set border radius
|
||||
),
|
||||
child: Text(
|
||||
child: SelectableText(
|
||||
content.text,
|
||||
style: TextStyle(
|
||||
color: Colors.white, // Set text color for contrast
|
||||
|
|
|
|||
Loading…
Reference in a new issue