Enhanced responsiveness of AqiLocationInfoCell.

This commit is contained in:
Faris Armoush
2025-05-29 09:24:29 +03:00
parent cc5f107ccb
commit a75e6a89a9
3 changed files with 31 additions and 26 deletions

View File

@ -50,7 +50,7 @@ class AirQualityView extends StatelessWidget {
],
),
),
Expanded(flex: 5, child: AirQualityEndSideWidget()),
Expanded(flex: 6, child: AirQualityEndSideWidget()),
],
),
),

View File

@ -27,11 +27,13 @@ class AqiLocationInfoCell extends StatelessWidget {
children: [
Align(
alignment: AlignmentDirectional.topStart,
child: Padding(
padding: const EdgeInsetsDirectional.all(10),
child: SizedBox(
height: 24,
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: AlignmentDirectional.topStart,
child: Padding(
padding: const EdgeInsetsDirectional.all(10),
child: Text(
label,
style: context.textTheme.bodySmall?.copyWith(
@ -43,12 +45,14 @@ class AqiLocationInfoCell extends StatelessWidget {
),
),
),
),
Align(
alignment: AlignmentDirectional.bottomEnd,
child: Padding(
padding: const EdgeInsetsDirectional.all(10).add(
const EdgeInsetsDirectional.only(start: 32),
),
padding: const EdgeInsetsDirectional.all(10),
child: SizedBox(
height: 40,
width: 120,
child: FittedBox(
fit: BoxFit.scaleDown,
alignment: AlignmentDirectional.bottomEnd,
@ -63,6 +67,7 @@ class AqiLocationInfoCell extends StatelessWidget {
),
),
),
),
Align(
alignment: AlignmentDirectional.bottomStart,
child: SizedBox.square(