feat: Add app icon generation, update profile navigation, and refine UI styling for profile action buttons and notification tabs.

This commit is contained in:
pradeepkumar
2026-03-14 17:25:33 +05:30
parent 7b9c19ec67
commit 8411015075
44 changed files with 276 additions and 279 deletions

View File

@@ -90,7 +90,7 @@ class _ChangePasswordTabState extends ConsumerState<ChangePasswordTab> {
const SizedBox(height: 40),
ProfileActionButtons(
onSave: _changePassword,
onCancel: () => context.pop(),
onCancel: () => context.go('/home'),
isSaving: _isChangingPassword,
saveLabel: 'Update Password',
),

View File

@@ -144,7 +144,7 @@ class _NotificationsTabState extends ConsumerState<NotificationsTab> {
const SizedBox(height: 40),
ProfileActionButtons(
onSave: _saveNotificationSettings,
onCancel: () => context.pop(),
onCancel: () => context.go('/home'),
isSaving: _isSavingNotifications,
),
],
@@ -318,8 +318,8 @@ class _NotificationsTabState extends ConsumerState<NotificationsTab> {
child: Center(
child: isSelected
? Container(
height: 22,
margin: const EdgeInsets.symmetric(horizontal: 4),
height: 24,
margin: const EdgeInsets.symmetric(horizontal: 3),
decoration: BoxDecoration(
color: AppColors.accentOrange,
borderRadius: BorderRadius.circular(15),
@@ -328,17 +328,19 @@ class _NotificationsTabState extends ConsumerState<NotificationsTab> {
child: Text(labels[i],
style: const TextStyle(
fontFamily: 'SourceSerif4',
fontSize: 14,
fontSize: 12,
fontWeight: FontWeight.w400,
color: AppColors.primaryDark,
height: 1.0,
)),
)
: Text(labels[i],
style: const TextStyle(
fontFamily: 'SourceSerif4',
fontSize: 14,
fontSize: 12,
fontWeight: FontWeight.w400,
color: AppColors.primaryDark,
height: 1.0,
)),
),
),

View File

@@ -150,7 +150,7 @@ class _PrivacyTabState extends ConsumerState<PrivacyTab> {
const SizedBox(height: 20),
ProfileActionButtons(
onSave: _savePrivacyPreferences,
onCancel: () => context.pop(),
onCancel: () => context.go('/home'),
isSaving: _isSavingPrivacy),
const SizedBox(height: 24),
ProfileSectionCard(

View File

@@ -259,7 +259,7 @@ class _ProfileSettingsTabState extends ConsumerState<ProfileSettingsTab> {
const SizedBox(height: 30),
ProfileActionButtons(
onSave: _saveProfileSettings,
onCancel: () => context.pop(),
onCancel: () => context.go('/home'),
isSaving: profileState.isSaving,
),
],

View File

@@ -97,56 +97,58 @@ class ProfileActionButtons extends StatelessWidget {
width: 1,
),
),
padding: const EdgeInsets.symmetric(horizontal: 16),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
GestureDetector(
onTap: onCancel,
child: Container(
width: 143,
height: 31,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(7),
border: Border.all(
color: AppColors.primaryDark.withValues(alpha: 0.1),
width: 1,
Expanded(
child: GestureDetector(
onTap: onCancel,
child: Container(
height: 31,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(7),
border: Border.all(
color: AppColors.primaryDark.withValues(alpha: 0.1),
width: 1,
),
),
alignment: Alignment.center,
child: const Text('Cancel',
style: TextStyle(
fontFamily: 'Fractul',
fontSize: 14,
fontWeight: FontWeight.w400,
color: AppColors.primaryDark,
)),
),
alignment: Alignment.center,
child: const Text('Cancel',
style: TextStyle(
fontFamily: 'Fractul',
fontSize: 14,
fontWeight: FontWeight.w400,
color: AppColors.primaryDark,
)),
),
),
const SizedBox(width: 10),
GestureDetector(
onTap: isSaving ? null : onSave,
child: Container(
width: 143,
height: 31,
decoration: BoxDecoration(
color: AppColors.accentOrange,
borderRadius: BorderRadius.circular(7),
Expanded(
child: GestureDetector(
onTap: isSaving ? null : onSave,
child: Container(
height: 31,
decoration: BoxDecoration(
color: AppColors.accentOrange,
borderRadius: BorderRadius.circular(7),
),
alignment: Alignment.center,
child: isSaving
? const SizedBox(
width: 16,
height: 16,
child: CircularProgressIndicator(
strokeWidth: 2, color: AppColors.primaryDark),
)
: Text(saveLabel,
style: const TextStyle(
fontFamily: 'Fractul',
fontSize: 14,
fontWeight: FontWeight.w400,
color: AppColors.primaryDark,
)),
),
alignment: Alignment.center,
child: isSaving
? const SizedBox(
width: 16,
height: 16,
child: CircularProgressIndicator(
strokeWidth: 2, color: AppColors.primaryDark),
)
: Text(saveLabel,
style: const TextStyle(
fontFamily: 'Fractul',
fontSize: 14,
fontWeight: FontWeight.w400,
color: AppColors.primaryDark,
)),
),
),
],