Use Material theme colors in transcript links

Remove the obsolete Cupertino theme dependency from link rendering and keep the shown-entry documentation accurate after the transcript cleanup.
This commit is contained in:
2026-11-11 11:56:48 +00:00
parent fbe1928f59
commit ddcf7bb3d1
2 changed files with 3 additions and 4 deletions
@@ -1,4 +1,3 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
@@ -76,8 +75,8 @@ class ChatLinkSpans {
..onSecondaryTapUp = _ownsSecondaryClick
? (details) => _showLinkMenu(context, details.globalPosition, url)
: null;
// The app theme's primary colour, read from the app's Cupertino theme.
final color = CupertinoTheme.of(context).primaryColor;
// The app theme's primary colour.
final color = Theme.of(context).colorScheme.primary;
return _leaves(
TextSpan(
style: TextStyle(