Skip to content

Commit e7c06bd

Browse files
committed
bfix: temporarily remove the change password section from edit profile
Signed-off-by: Aman <aman2@me.iitr.ac.in>
1 parent 8456020 commit e7c06bd

2 files changed

Lines changed: 15 additions & 14 deletions

File tree

lib/presentation/core/main_app.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Codephile extends StatelessWidget {
5050
StorageService.init();
5151
NotificationService.init();
5252

53-
if (StorageService.exists(AppStrings.userKey)) {
53+
if (StorageService.exists(AppStrings.userKey, checkForNull: true)) {
5454
// Fetch User Details on Startup
5555
try {
5656
StorageService.user = await UserRepository.fetchUserDetails();

lib/presentation/update_profile/widgets/profile_details.dart

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import 'package:flutter_svg/flutter_svg.dart';
66

77
import '../../../data/constants/assets.dart';
88
import '../../../data/constants/colors.dart';
9-
import '../../../data/constants/styles.dart';
9+
// import '../../../data/constants/styles.dart';
1010
import '../../components/inputs/text_input.dart';
1111
import '../bloc/update_profile_bloc.dart';
1212

@@ -59,18 +59,19 @@ class ProfileDetails extends StatelessWidget {
5959
);
6060
},
6161
),
62-
Align(
63-
alignment: Alignment.bottomRight,
64-
child: TextButton(
65-
onPressed: () {
66-
context.read<UpdateProfileBloc>().add(const SwitchView());
67-
},
68-
child: Text(
69-
'Change Password',
70-
style: AppStyles.h6.copyWith(color: AppColors.primary),
71-
),
72-
),
73-
),
62+
// TODO(aman-singh7): Blocked From backend. Information Needed
63+
// Align(
64+
// alignment: Alignment.bottomRight,
65+
// child: TextButton(
66+
// onPressed: () {
67+
// context.read<UpdateProfileBloc>().add(const SwitchView());
68+
// },
69+
// child: Text(
70+
// 'Change Password',
71+
// style: AppStyles.h6.copyWith(color: AppColors.primary),
72+
// ),
73+
// ),
74+
// ),
7475
],
7576
);
7677
}

0 commit comments

Comments
 (0)