mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-08-06 02:30:12 +08:00
opt: reply msg
This commit is contained in:
@@ -259,11 +259,7 @@ class ReplyItem extends StatelessWidget {
|
|||||||
textDirection: Directionality.of(context),
|
textDirection: Directionality.of(context),
|
||||||
)..layout(maxWidth: constraints.maxWidth);
|
)..layout(maxWidth: constraints.maxWidth);
|
||||||
bool didExceedMaxLines = textPainter.didExceedMaxLines;
|
bool didExceedMaxLines = textPainter.didExceedMaxLines;
|
||||||
return Column(
|
return Semantics(
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
|
||||||
children: [
|
|
||||||
Semantics(
|
|
||||||
label: text,
|
label: text,
|
||||||
child: Text.rich(
|
child: Text.rich(
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
@@ -294,18 +290,16 @@ class ReplyItem extends StatelessWidget {
|
|||||||
textPainter,
|
textPainter,
|
||||||
didExceedMaxLines,
|
didExceedMaxLines,
|
||||||
),
|
),
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
if (didExceedMaxLines)
|
if (didExceedMaxLines)
|
||||||
Text(
|
TextSpan(
|
||||||
'查看更多',
|
text: '\n查看更多',
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Theme.of(context).colorScheme.primary,
|
color: Theme.of(context).colorScheme.primary,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user