Add save button to AccountSettingsDialog for profile updates
This commit is contained in:
@@ -620,10 +620,12 @@ class _AccountSettingsDialogState extends State<AccountSettingsDialog> {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 24),
|
const SizedBox(height: 24),
|
||||||
|
|
||||||
|
// Save Button
|
||||||
|
Center(
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 144,
|
width: 144,
|
||||||
child: ModernGlassButton(
|
child: ModernGlassButton(
|
||||||
onPressed: _isLoading ? null : _updateProfile,
|
onPressed: _isLoading ? () {} : () => _updateProfile(),
|
||||||
isLoading: _isLoading,
|
isLoading: _isLoading,
|
||||||
child: _isLoading
|
child: _isLoading
|
||||||
? const SizedBox(
|
? const SizedBox(
|
||||||
@@ -639,6 +641,7 @@ class _AccountSettingsDialogState extends State<AccountSettingsDialog> {
|
|||||||
: const Text('Save Changes'),
|
: const Text('Save Changes'),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
const SizedBox(height: 2), // Space for logout button
|
const SizedBox(height: 2), // Space for logout button
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user