Deploy: 2026-05-25 01:12:09
This commit is contained in:
@@ -510,6 +510,38 @@ class _ChannelsViewState extends State<ChannelsView> with SingleTickerProviderSt
|
|||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildStep(String text) {
|
Widget _buildStep(String text) {
|
||||||
|
const String linkText = 'developers.facebook.com';
|
||||||
|
if (text.contains(linkText)) {
|
||||||
|
final List<String> parts = text.split(linkText);
|
||||||
|
return Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(vertical: 2.0),
|
||||||
|
child: RichText(
|
||||||
|
text: TextSpan(
|
||||||
|
style: const TextStyle(color: Colors.white70, fontSize: 11, height: 1.4, fontFamily: 'Outfit'), // or default font family
|
||||||
|
children: [
|
||||||
|
TextSpan(text: parts[0]),
|
||||||
|
TextSpan(
|
||||||
|
text: linkText,
|
||||||
|
style: const TextStyle(
|
||||||
|
color: Colors.purpleAccent,
|
||||||
|
decoration: TextDecoration.underline,
|
||||||
|
fontWeight: FontWeight.bold,
|
||||||
|
),
|
||||||
|
recognizer: TapGestureRecognizer()
|
||||||
|
..onTap = () async {
|
||||||
|
final Uri url = Uri.parse('https://developers.facebook.com');
|
||||||
|
if (await canLaunchUrl(url)) {
|
||||||
|
await launchUrl(url, mode: LaunchMode.externalApplication);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
),
|
||||||
|
if (parts.length > 1) TextSpan(text: parts[1]),
|
||||||
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.symmetric(vertical: 2.0),
|
padding: const EdgeInsets.symmetric(vertical: 2.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
|
|||||||
Reference in New Issue
Block a user