Refactor Send Invitation button to use fixed width for better layout consistency
This commit is contained in:
@@ -584,25 +584,28 @@ class _OrganizationSettingsDialogState
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 16),
|
const SizedBox(height: 16),
|
||||||
ModernGlassButton(
|
SizedBox(
|
||||||
onPressed: () {
|
width: 120,
|
||||||
if (_canManage) {
|
child: ModernGlassButton(
|
||||||
final username = usernameController.text.trim();
|
onPressed: () {
|
||||||
if (username.isNotEmpty) {
|
if (_canManage) {
|
||||||
_inviteUser(username, selectedRole);
|
final username = usernameController.text.trim();
|
||||||
usernameController.clear();
|
if (username.isNotEmpty) {
|
||||||
}
|
_inviteUser(username, selectedRole);
|
||||||
} else {
|
usernameController.clear();
|
||||||
ScaffoldMessenger.of(context).showSnackBar(
|
}
|
||||||
const SnackBar(
|
} else {
|
||||||
content: Text(
|
ScaffoldMessenger.of(context).showSnackBar(
|
||||||
'You do not have permission to send invitations',
|
const SnackBar(
|
||||||
|
content: Text(
|
||||||
|
'You do not have permission to send invitations',
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
);
|
||||||
);
|
}
|
||||||
}
|
},
|
||||||
},
|
child: const Text('Send Invitation'),
|
||||||
child: const Text('Send Invitation'),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user