Skip to content

Commit 3719c52

Browse files
committed
Profile Page Redesigned
profile page is redesigned as per gsoc deliverable 2.2.5
1 parent a445607 commit 3719c52

File tree

6 files changed

+299
-595
lines changed

6 files changed

+299
-595
lines changed

lib/app/modules/profile/views/deleteprofiledialog.dart

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,15 @@ class DeleteProfileDialog extends StatelessWidget {
1111
const DeleteProfileDialog({
1212
required this.profile,
1313
required this.context,
14+
required this.profiles,
15+
required this.profileName,
1416
super.key,
1517
});
1618

1719
final String profile;
1820
final BuildContext context;
19-
21+
final RxMap<dynamic, dynamic> profiles;
22+
final String? profileName;
2023
@override
2124
Widget build(BuildContext context) {
2225
return Center(
@@ -25,10 +28,9 @@ class DeleteProfileDialog extends StatelessWidget {
2528
child: Utils.showAlertDialog(
2629
scrollable: true,
2730
title: Text(
28-
SentenceManager(
29-
currentLanguage: AppSettings.selectedLanguage)
30-
.sentences
31-
.profilePageDeleteProfile,
31+
SentenceManager(currentLanguage: AppSettings.selectedLanguage)
32+
.sentences
33+
.profilePageDeleteProfile,
3234
style: TextStyle(
3335
color: AppSettings.isDarkMode
3436
? TaskWarriorColors.white
@@ -39,7 +41,8 @@ class DeleteProfileDialog extends StatelessWidget {
3941
actions: [
4042
TextButton(
4143
onPressed: () {
42-
// Navigator.of(context).pop();
44+
debugPrint("PROFILE$profile${profileName!}");
45+
profiles[profile] = profileName;
4346
Get.back();
4447
},
4548
child: Text(

lib/app/modules/profile/views/manageprofile.dart

Lines changed: 0 additions & 117 deletions
This file was deleted.

0 commit comments

Comments
 (0)