File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -59,7 +59,8 @@ class HostelChangeScreen extends StatelessWidget {
5959 backgroundColor: Colors .green,
6060 ),
6161 );
62- context.router.pushAndPopUntil (const ProfileRoute (), predicate: ModalRoute .withName (ProfileRoute .name));
62+ context.router.pushAndPopUntil (const ProfileRoute (),
63+ predicate: ModalRoute .withName (ProfileRoute .name));
6364 }
6465 if (state is HostelChangeInitial && state.error != null ) {
6566 ScaffoldMessenger .of (context).showSnackBar (
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ class ProfileScreen extends StatelessWidget {
2929 BlocBuilder <ProfilePageBloc , ProfilePageState >(
3030 builder: (context, state) {
3131 if (state is ProfilePageFetchedState ) {
32-
3332 return Column (
3433 crossAxisAlignment: CrossAxisAlignment .center,
3534 children: [
@@ -98,16 +97,14 @@ class ProfileScreen extends StatelessWidget {
9897 10. toVerticalSizedBox,
9998 if (state.hostelChangeStatus['detail' ] !=
10099 null ||
101- (state.hostelChangeStatus[
102- 'is_approved' ] !=
100+ (state.hostelChangeStatus['is_approved' ] !=
103101 null &&
104- state.hostelChangeStatus[
105- 'is_approved' ]))
102+ state
103+ .hostelChangeStatus[ 'is_approved' ]))
106104 ProfileTextButton (
107105 title: 'Request for Hostel Change' ,
108106 onPressed: () {
109- context.router
110- .push (HostelChangeRoute ());
107+ context.router.push (HostelChangeRoute ());
111108 },
112109 horizontalPadding: 50 ,
113110 width: 248 ,
You can’t perform that action at this time.
0 commit comments