mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-16 01:56:24 +00:00
Fixed creating community
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class CreateCommunityDialog extends StatefulWidget {
|
||||
final Function(String) onCreateCommunity;
|
||||
final Function(String name, String description, String regionId)
|
||||
onCreateCommunity;
|
||||
|
||||
const CreateCommunityDialog({super.key, required this.onCreateCommunity});
|
||||
|
||||
@ -109,7 +110,11 @@ class CreateCommunityDialogState extends State<CreateCommunityDialog> {
|
||||
child: ElevatedButton(
|
||||
onPressed: () {
|
||||
if (enteredName.isNotEmpty) {
|
||||
widget.onCreateCommunity(enteredName);
|
||||
widget.onCreateCommunity(
|
||||
enteredName,
|
||||
"",
|
||||
"42dc377a-1a39-4df9-b85a-b3817af88525",
|
||||
);
|
||||
Navigator.of(context).pop();
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user