V1 calendrier
This commit is contained in:
@@ -115,7 +115,7 @@ class _UserManagementPageState extends State<UserManagementPage> {
|
||||
List<RoleModel> availableRoles = [];
|
||||
bool isLoadingRoles = true;
|
||||
|
||||
Future<void> _loadRoles() async {
|
||||
Future<void> loadRoles() async {
|
||||
final snapshot =
|
||||
await FirebaseFirestore.instance.collection('roles').get();
|
||||
availableRoles = snapshot.docs
|
||||
@@ -145,7 +145,7 @@ class _UserManagementPageState extends State<UserManagementPage> {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => FutureBuilder(
|
||||
future: _loadRoles(),
|
||||
future: loadRoles(),
|
||||
builder: (context, snapshot) {
|
||||
return Dialog(
|
||||
shape: RoundedRectangleBorder(
|
||||
@@ -204,7 +204,7 @@ class _UserManagementPageState extends State<UserManagementPage> {
|
||||
isLoadingRoles
|
||||
? const CircularProgressIndicator()
|
||||
: DropdownButtonFormField<String>(
|
||||
value: selectedRoleId,
|
||||
initialValue: selectedRoleId,
|
||||
decoration: buildInputDecoration('Rôle',
|
||||
Icons.admin_panel_settings_outlined),
|
||||
items: availableRoles.map((role) {
|
||||
|
||||
Reference in New Issue
Block a user