mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-15 09:45:25 +00:00
added validation for community name
This commit is contained in:
@ -24,12 +24,13 @@ class CommunityStructureArea extends StatefulWidget {
|
||||
SpaceModel? selectedSpace;
|
||||
final List<ProductModel>? products;
|
||||
final ValueChanged<SpaceModel?>? onSpaceSelected;
|
||||
|
||||
final List<CommunityModel> communities;
|
||||
final List<SpaceModel> spaces;
|
||||
|
||||
CommunityStructureArea({
|
||||
this.selectedCommunity,
|
||||
this.selectedSpace,
|
||||
required this.communities,
|
||||
this.products,
|
||||
required this.spaces,
|
||||
this.onSpaceSelected,
|
||||
@ -97,7 +98,9 @@ class _CommunityStructureAreaState extends State<CommunityStructureArea> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
if (widget.selectedCommunity == null) {
|
||||
return BlankCommunityWidget();
|
||||
return BlankCommunityWidget(
|
||||
communities: widget.communities,
|
||||
);
|
||||
}
|
||||
|
||||
Size screenSize = MediaQuery.of(context).size;
|
||||
|
Reference in New Issue
Block a user