1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 04:49:21 +00:00

Improve links color

This commit is contained in:
Pierre HUBERT 2020-04-17 11:56:28 +02:00
parent 03c4a4eae0
commit 9b53a3b0c9
2 changed files with 6 additions and 2 deletions

View File

@ -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),

View File

@ -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),
),