@@ -129,6 +129,7 @@ class _ManagerPageState extends State<ManagerPage> {
129129 ),
130130 onPressed: () {
131131 Navigator .of (context).pop ();
132+ globalHeight = MediaQuery .of (context).size.height;
132133 },
133134 ),
134135 ),
@@ -161,82 +162,84 @@ class _ManagerPageState extends State<ManagerPage> {
161162 return Container ();
162163 }
163164
164- Widget _buildItemContentWidget (ManagerData data) => Stack (
165- children: [
166- WeatherColorBg (weatherType: data.weatherType, height: 100 ,),
167- Container (
168- height: 100 ,
169- child: Row (
170- children: [
171- SizedBox (
172- width: 14 ,
173- ),
174- Expanded (
175- child: Column (
176- mainAxisSize: MainAxisSize .min,
177- crossAxisAlignment: CrossAxisAlignment .start,
178- children: [
179- Row (
180- crossAxisAlignment: CrossAxisAlignment .end,
181- children: [
182- Text (
183- "${data .weatherDesc }" ,
184- style: TextStyle (
185- color: Color .fromARGB (200 , 255 , 255 , 255 ),
186- fontWeight: FontWeight .w500,
187- letterSpacing: 1 ,
188- fontSize: 12 ),
189- ),
190- SizedBox (
191- width: 5 ,
192- ),
193- Text (
194- "${data .todayTemperature }" ,
195- style: TextStyle (
196- color: Color .fromARGB (200 , 255 , 255 , 255 ),
197- fontWeight: FontWeight .w500,
198- letterSpacing: 1 ,
199- fontSize: 12 ),
200- ),
201- ],
202- ),
203- SizedBox (
204- height: 5 ,
205- ),
206- Row (
207- children: [
208- Text (
209- "${data .cityName }" ,
210- style: TextStyle (
211- color: Color .fromARGB (250 , 255 , 255 , 255 ),
212- fontWeight: FontWeight .w400,
213- fontSize: 18 ),
214- ),
215- SizedBox (width: 6 ,),
216- Visibility (
217- visible: data.isLocated == true ,
218- child: Icon (Icons .location_on, color: Colors .white, size: 18 ,),
219- )
220- ],
221- ),
222- ],
223- ),
224- ),
225- Text (
226- "${data .currentTemperature }" ,
227- style: TextStyle (
228- color: Colors .white,
229- fontWeight: FontWeight .w400,
230- fontSize: 40 ),
165+ Widget _buildItemContentWidget (ManagerData data) {
166+ return Stack (
167+ children: [
168+ WeatherBg (weatherType: data.weatherType, height: 100 , width: MediaQuery .of (context).size.width,),
169+ Container (
170+ height: 100 ,
171+ child: Row (
172+ children: [
173+ SizedBox (
174+ width: 14 ,
175+ ),
176+ Expanded (
177+ child: Column (
178+ mainAxisSize: MainAxisSize .min,
179+ crossAxisAlignment: CrossAxisAlignment .start,
180+ children: [
181+ Row (
182+ crossAxisAlignment: CrossAxisAlignment .end,
183+ children: [
184+ Text (
185+ "${data .weatherDesc }" ,
186+ style: TextStyle (
187+ color: Color .fromARGB (200 , 255 , 255 , 255 ),
188+ fontWeight: FontWeight .w500,
189+ letterSpacing: 1 ,
190+ fontSize: 12 ),
191+ ),
192+ SizedBox (
193+ width: 5 ,
194+ ),
195+ Text (
196+ "${data .todayTemperature }" ,
197+ style: TextStyle (
198+ color: Color .fromARGB (200 , 255 , 255 , 255 ),
199+ fontWeight: FontWeight .w500,
200+ letterSpacing: 1 ,
201+ fontSize: 12 ),
202+ ),
203+ ],
204+ ),
205+ SizedBox (
206+ height: 5 ,
207+ ),
208+ Row (
209+ children: [
210+ Text (
211+ "${data .cityName }" ,
212+ style: TextStyle (
213+ color: Color .fromARGB (250 , 255 , 255 , 255 ),
214+ fontWeight: FontWeight .w400,
215+ fontSize: 18 ),
216+ ),
217+ SizedBox (width: 6 ,),
218+ Visibility (
219+ visible: data.isLocated == true ,
220+ child: Icon (Icons .location_on, color: Colors .white, size: 18 ,),
221+ )
222+ ],
223+ ),
224+ ],
231225 ),
232- SizedBox (
233- width: 20 ,
234- )
235- ],
236- ),
226+ ),
227+ Text (
228+ "${data .currentTemperature }" ,
229+ style: TextStyle (
230+ color: Colors .white,
231+ fontWeight: FontWeight .w400,
232+ fontSize: 40 ),
233+ ),
234+ SizedBox (
235+ width: 20 ,
236+ )
237+ ],
237238 ),
238- ],
239- );
239+ ),
240+ ],
241+ );
242+ }
240243
241244 Widget _buildItemWidget (ManagerData data) {
242245 if (data.isLocated != true ) {
0 commit comments