Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-01-02 13:25:48 +08:00
parent 3919e42b59
commit d0ef75bce7
5 changed files with 13 additions and 7 deletions

View File

@@ -185,6 +185,7 @@ class VideoCardH extends StatelessWidget {
child: RichText(
overflow: TextOverflow.ellipsis,
maxLines: 2,
textScaler: MediaQuery.textScalerOf(context),
text: TextSpan(
children: [
for (final i in videoItem.title) ...[

View File

@@ -325,6 +325,7 @@ class VideoCardV extends StatelessWidget {
flex: 0,
child: RichText(
maxLines: 1,
textScaler: MediaQuery.textScalerOf(context),
text: TextSpan(
style: TextStyle(
fontSize:
@@ -347,6 +348,7 @@ class VideoCardV extends StatelessWidget {
flex: 0,
child: RichText(
maxLines: 1,
textScaler: MediaQuery.textScalerOf(context),
text: TextSpan(
style: TextStyle(
fontSize:

View File

@@ -164,6 +164,9 @@ Widget searchArticlePanel(context, searchPanelCtr, LoadingState loadingState) {
children: [
RichText(
maxLines: 2,
textScaler:
MediaQuery.textScalerOf(
context),
text: TextSpan(
children: [
for (var i in loadingState

View File

@@ -131,6 +131,7 @@ class LiveContent extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
RichText(
textScaler: MediaQuery.textScalerOf(context),
text: TextSpan(
children: [
for (var i in liveItem.title) ...[

View File

@@ -78,6 +78,8 @@ Widget searchBangumiPanel(context, ctr, LoadingState loadingState) {
RichText(
maxLines: 1,
overflow: TextOverflow.ellipsis,
textScaler:
MediaQuery.textScalerOf(context),
text: TextSpan(
style: TextStyle(
color: Theme.of(context)
@@ -88,13 +90,10 @@ Widget searchBangumiPanel(context, ctr, LoadingState loadingState) {
TextSpan(
text: i['text'],
style: TextStyle(
fontSize:
MediaQuery.textScalerOf(
context)
.scale(Theme.of(context)
.textTheme
.titleSmall!
.fontSize!),
fontSize: Theme.of(context)
.textTheme
.titleSmall!
.fontSize!,
fontWeight: FontWeight.bold,
color: i['type'] == 'em'
? Theme.of(context)