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,
|
content: message.message,
|
||||||
textAlign: TextAlign.justify,
|
textAlign: TextAlign.justify,
|
||||||
style: TextStyle(color: Colors.white),
|
style: TextStyle(color: Colors.white),
|
||||||
|
linksColor: Colors.indigo,
|
||||||
),
|
),
|
||||||
padding: EdgeInsets.fromLTRB(
|
padding: EdgeInsets.fromLTRB(
|
||||||
15.0, 10.0, 15.0, 10.0),
|
15.0, 10.0, 15.0, 10.0),
|
||||||
|
@ -16,6 +16,7 @@ class TextWidget extends StatelessWidget {
|
|||||||
final bool parseBBcode;
|
final bool parseBBcode;
|
||||||
final TextStyle style;
|
final TextStyle style;
|
||||||
final TextAlign textAlign;
|
final TextAlign textAlign;
|
||||||
|
final Color linksColor;
|
||||||
|
|
||||||
const TextWidget({
|
const TextWidget({
|
||||||
Key key,
|
Key key,
|
||||||
@ -23,8 +24,10 @@ class TextWidget extends StatelessWidget {
|
|||||||
this.parseBBcode = false,
|
this.parseBBcode = false,
|
||||||
this.textAlign = TextAlign.start,
|
this.textAlign = TextAlign.start,
|
||||||
this.style,
|
this.style,
|
||||||
|
this.linksColor = Colors.blueAccent,
|
||||||
}) : assert(content != null),
|
}) : assert(content != null),
|
||||||
assert(parseBBcode != null),
|
assert(parseBBcode != null),
|
||||||
|
assert(linksColor != null),
|
||||||
super(key: key);
|
super(key: key);
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -77,7 +80,7 @@ class TextWidget extends StatelessWidget {
|
|||||||
child: InkWell(
|
child: InkWell(
|
||||||
child: Text(
|
child: Text(
|
||||||
word,
|
word,
|
||||||
style: style.copyWith(color: Colors.indigo),
|
style: style.copyWith(color: linksColor),
|
||||||
),
|
),
|
||||||
onTap: () => launch(word),
|
onTap: () => launch(word),
|
||||||
),
|
),
|
||||||
@ -96,7 +99,7 @@ class TextWidget extends StatelessWidget {
|
|||||||
child: InkWell(
|
child: InkWell(
|
||||||
child: Text(
|
child: Text(
|
||||||
word,
|
word,
|
||||||
style: style.copyWith(color: Colors.indigo),
|
style: style.copyWith(color: linksColor),
|
||||||
),
|
),
|
||||||
onTap: () => openVirtualDirectory(context, word),
|
onTap: () => openVirtualDirectory(context, word),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user