[mob][photos] Make text alignment perfect

This commit is contained in:
ashilkn 2024-12-20 12:57:21 +05:30
parent 09fe2c6f7e
commit c453827cc8

View File

@ -131,16 +131,18 @@ class _MemoryCoverWidgetState extends State<MemoryCoverWidget> {
), ),
child: Hero( child: Hero(
tag: title, tag: title,
child: Text( child: Center(
title, child: Text(
style: getEnteTextTheme(context) title,
.miniBold style: getEnteTextTheme(context)
.copyWith( .miniBold
color: isSeen .copyWith(
? textFaintDark color: isSeen
: Colors.white, ? textFaintDark
), : Colors.white,
textAlign: TextAlign.center, ),
textAlign: TextAlign.left,
),
), ),
), ),
), ),
@ -180,14 +182,16 @@ class _MemoryCoverWidgetState extends State<MemoryCoverWidget> {
), ),
child: Hero( child: Hero(
tag: title, tag: title,
child: Text( child: Center(
title, child: Text(
style: getEnteTextTheme(context) title,
.miniBold style: getEnteTextTheme(context)
.copyWith( .miniBold
color: Colors.white, .copyWith(
), color: Colors.white,
textAlign: TextAlign.center, ),
textAlign: TextAlign.left,
),
), ),
), ),
), ),