mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: trans some text to selectabletext
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -69,7 +69,7 @@ class OverlayPop extends StatelessWidget {
|
||||
child: Row(
|
||||
children: [
|
||||
Expanded(
|
||||
child: Text(
|
||||
child: SelectableText(
|
||||
videoItem is card.Card
|
||||
? (videoItem as card.Card).smallCoverV5.base.title
|
||||
: videoItem.title,
|
||||
|
||||
@@ -46,7 +46,7 @@ class IntroDetail extends StatelessWidget {
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Text(
|
||||
SelectableText(
|
||||
videoDetail!.title,
|
||||
style: const TextStyle(
|
||||
fontSize: 16,
|
||||
|
||||
@@ -45,7 +45,7 @@ class AiDetail extends StatelessWidget {
|
||||
children: [
|
||||
if (modelResult!.summary != null &&
|
||||
modelResult!.summary!.isNotEmpty) ...[
|
||||
Text(
|
||||
SelectableText(
|
||||
'总结: ${modelResult!.summary!}',
|
||||
style: const TextStyle(
|
||||
fontSize: 15,
|
||||
@@ -66,7 +66,7 @@ class AiDetail extends StatelessWidget {
|
||||
itemBuilder: (context, index) {
|
||||
return Column(
|
||||
children: [
|
||||
Text(
|
||||
SelectableText(
|
||||
modelResult!.outline![index].title!,
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
@@ -86,8 +86,8 @@ class AiDetail extends StatelessWidget {
|
||||
children: [
|
||||
Wrap(
|
||||
children: [
|
||||
RichText(
|
||||
text: TextSpan(
|
||||
SelectableText.rich(
|
||||
TextSpan(
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
color: Theme.of(context)
|
||||
|
||||
Reference in New Issue
Block a user