mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 12:59:21 +00:00
Improve links color
This commit is contained in:
parent
03c4a4eae0
commit
9b53a3b0c9
@ -128,6 +128,7 @@ class ConversationMessageTile extends StatelessWidget {
|
||||
content: message.message,
|
||||
textAlign: TextAlign.justify,
|
||||
style: TextStyle(color: Colors.white),
|
||||
linksColor: Colors.indigo,
|
||||
),
|
||||
padding: EdgeInsets.fromLTRB(
|
||||
15.0, 10.0, 15.0, 10.0),
|
||||
|
@ -16,6 +16,7 @@ class TextWidget extends StatelessWidget {
|
||||
final bool parseBBcode;
|
||||
final TextStyle style;
|
||||
final TextAlign textAlign;
|
||||
final Color linksColor;
|
||||
|
||||
const TextWidget({
|
||||
Key key,
|
||||
@ -23,8 +24,10 @@ class TextWidget extends StatelessWidget {
|
||||
this.parseBBcode = false,
|
||||
this.textAlign = TextAlign.start,
|
||||
this.style,
|
||||
this.linksColor = Colors.blueAccent,
|
||||
}) : assert(content != null),
|
||||
assert(parseBBcode != null),
|
||||
assert(linksColor != null),
|
||||
super(key: key);
|
||||
|
||||
@override
|
||||
@ -77,7 +80,7 @@ class TextWidget extends StatelessWidget {
|
||||
child: InkWell(
|
||||
child: Text(
|
||||
word,
|
||||
style: style.copyWith(color: Colors.indigo),
|
||||
style: style.copyWith(color: linksColor),
|
||||
),
|
||||
onTap: () => launch(word),
|
||||
),
|
||||
@ -96,7 +99,7 @@ class TextWidget extends StatelessWidget {
|
||||
child: InkWell(
|
||||
child: Text(
|
||||
word,
|
||||
style: style.copyWith(color: Colors.indigo),
|
||||
style: style.copyWith(color: linksColor),
|
||||
),
|
||||
onTap: () => openVirtualDirectory(context, word),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user