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, color: theme.colorScheme.primary,
), ),
Container(width: 15.0), Container(width: 15.0),
Text( // #Pangea
// #Pangea // Text(
textScaler: TextScaler.noScaling, // event.calcLocalizedBodyFallback(
// Pangea# // MatrixLocals(L10n.of(context)),
event.calcLocalizedBodyFallback( // withSenderNamePrefix: false,
MatrixLocals(L10n.of(context)), // hideReply: true,
withSenderNamePrefix: false, // ),
hideReply: true, // overflow: TextOverflow.ellipsis,
), // maxLines: 1,
overflow: TextOverflow.ellipsis, // style: TextStyle(
maxLines: 1, // color: theme.textTheme.bodyMedium!.color,
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