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