mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 08:15:16 +00:00
Improve links color
This commit is contained in:
@ -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),
|
||||
),
|
||||
|
Reference in New Issue
Block a user