Make editing text flexible (#3492)

* Make editing text flexible

* chore: simplify pangea comments

---------

Co-authored-by: ggurdin <ggurdin@gmail.com>
pull/2245/head
Kelrap 4 months ago committed by GitHub
parent cc9fa75c34
commit 473ca66f48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -68,21 +68,35 @@ class _EditContent extends StatelessWidget {
color: theme.colorScheme.primary,
),
Container(width: 15.0),
Text(
// #Pangea
textScaler: TextScaler.noScaling,
// Pangea#
event.calcLocalizedBodyFallback(
MatrixLocals(L10n.of(context)),
withSenderNamePrefix: false,
hideReply: true,
),
overflow: TextOverflow.ellipsis,
maxLines: 1,
style: TextStyle(
color: theme.textTheme.bodyMedium!.color,
// #Pangea
// Text(
// event.calcLocalizedBodyFallback(
// MatrixLocals(L10n.of(context)),
// withSenderNamePrefix: false,
// hideReply: true,
// ),
// overflow: TextOverflow.ellipsis,
// maxLines: 1,
// style: TextStyle(
// color: theme.textTheme.bodyMedium!.color,
// ),
// ),
Flexible(
child: Text(
textScaler: TextScaler.noScaling,
event.calcLocalizedBodyFallback(
MatrixLocals(L10n.of(context)),
withSenderNamePrefix: false,
hideReply: true,
),
overflow: TextOverflow.ellipsis,
maxLines: 1,
style: TextStyle(
color: theme.textTheme.bodyMedium!.color,
),
),
),
// Pangea#
],
);
}

Loading…
Cancel
Save