@@ -95,12 +95,7 @@ class ProfileScreen extends StatelessWidget {
9595 ],
9696 ),
9797 10. toVerticalSizedBox,
98- if (state.hostelChangeStatus['detail' ] !=
99- null ||
100- (state.hostelChangeStatus['is_approved' ] !=
101- null &&
102- state
103- .hostelChangeStatus['is_approved' ]))
98+ if (state.hostelChangeStatus.isApproved == null )
10499 ProfileTextButton (
105100 title: 'Request for Hostel Change' ,
106101 onPressed: () {
@@ -109,7 +104,7 @@ class ProfileScreen extends StatelessWidget {
109104 horizontalPadding: 50 ,
110105 width: 248 ,
111106 ),
112- if (state.hostelChangeStatus[ 'detail' ] = = null )
107+ if (state.hostelChangeStatus.isApproved ! = null )
113108 TextButton (
114109 onPressed: () => {
115110 showDialog (
@@ -152,7 +147,7 @@ class ProfileScreen extends StatelessWidget {
152147 Align (
153148 alignment: Alignment .centerLeft,
154149 child: Text (
155- "Requested for hostel change to ${state .hostelChangeStatus [ 'hostel_code' ] }" ,
150+ "Requested for hostel change to ${state .hostelChangeStatus . hostelCode }" ,
156151 style: TextStyle (
157152 color: const Color (0xFF111111 ),
158153 fontSize: 13. toAutoScaledFont,
@@ -164,7 +159,7 @@ class ProfileScreen extends StatelessWidget {
164159 Align (
165160 alignment: Alignment .centerLeft,
166161 child: Text (
167- "New Room No: ${state .hostelChangeStatus [ 'new_room_no' ] }" ,
162+ "New Room No: ${state .hostelChangeStatus . newRoomNo }" ,
168163 textAlign: TextAlign .justify,
169164 style: TextStyle (
170165 color: const Color (0xFF2F2F2F ),
@@ -244,7 +239,6 @@ class ProfileScreen extends StatelessWidget {
244239 ],
245240 );
246241 }
247-
248242 return SizedBox (
249243 height: 200. toAutoScaledHeight,
250244 child: const Align (
0 commit comments