Skip to content

Commit 1bd2df5

Browse files
committed
chore: beautifies Code
1 parent e3de526 commit 1bd2df5

2 files changed

Lines changed: 6 additions & 8 deletions

File tree

lib/presentation/hostel_change/hostel_change_screen.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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(

lib/presentation/profile/profile_view.dart

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)