Improved alignment of AqiLocationInfoCell.

This commit is contained in:
Faris Armoush
2025-06-19 15:38:28 +03:00
parent 5201a65a97
commit 23c3bf11f9

View File

@ -47,19 +47,29 @@ class AqiLocationInfoCell extends StatelessWidget {
), ),
), ),
Align( Align(
alignment: AlignmentDirectional.bottomEnd, alignment: AlignmentDirectional.bottomCenter,
child: Padding( child: Row(
padding: const EdgeInsetsDirectional.all(10), crossAxisAlignment: CrossAxisAlignment.end,
child: SizedBox( children: [
height: 40, Expanded(
width: 120, child: SvgPicture.asset(
svgPath,
fit: BoxFit.scaleDown,
alignment: AlignmentDirectional.bottomStart,
),
),
Expanded(
child: FittedBox( child: FittedBox(
fit: BoxFit.scaleDown, fit: BoxFit.scaleDown,
alignment: AlignmentDirectional.bottomEnd, alignment: AlignmentDirectional.bottomEnd,
child: Padding(
padding: const EdgeInsetsDirectional.all(10),
child: Text( child: Text(
value, value,
style: context.textTheme.bodySmall?.copyWith( style: context.textTheme.bodySmall?.copyWith(
color: ColorsManager.vividBlue.withValues(alpha: 0.7), color: ColorsManager.vividBlue.withValues(
alpha: 0.7,
),
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
fontSize: 24, fontSize: 24,
), ),
@ -67,16 +77,7 @@ class AqiLocationInfoCell extends StatelessWidget {
), ),
), ),
), ),
), ],
Align(
alignment: AlignmentDirectional.bottomStart,
child: SizedBox.square(
dimension: MediaQuery.sizeOf(context).width * 0.45,
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: AlignmentDirectional.bottomStart,
child: SvgPicture.asset(svgPath),
),
), ),
), ),
], ],