Skip to content

Commit 0665026

Browse files
inderjeet20Inderjeet Singh
andauthored
Refactored UI: Dynamic Width Using MediaQuery (#771)
Co-authored-by: Inderjeet Singh <[email protected]>
1 parent bf7f733 commit 0665026

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/app/modules/addOrUpdateAlarm/views/weather_tile.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ class WeatherTile extends StatelessWidget {
159159
children: [
160160
Obx(
161161
() => Container(
162-
width: 150,
162+
width: MediaQuery.of(context).size.width * 0.2, // Adjust width dynamically
163163
alignment: Alignment.centerRight,
164164
child: Text(
165165
controller.weatherTypes.value,

0 commit comments

Comments
 (0)