fixed spaces api

This commit is contained in:
hannathkadher
2024-11-11 21:20:41 +04:00
parent fcd91305e5
commit d0229ed81f
6 changed files with 40 additions and 43 deletions

View File

@ -7,6 +7,8 @@ import 'package:syncrow_web/pages/spaces_management/bloc/space_management_bloc.d
import 'package:syncrow_web/pages/spaces_management/bloc/space_management_event.dart';
import 'package:syncrow_web/pages/spaces_management/bloc/space_management_state.dart';
import 'package:syncrow_web/pages/spaces_management/model/community_model.dart';
import 'package:syncrow_web/pages/spaces_management/model/connection_model.dart';
import 'package:syncrow_web/pages/spaces_management/model/space_data_model.dart';
import 'package:syncrow_web/pages/spaces_management/model/space_model.dart';
import 'package:syncrow_web/pages/spaces_management/view/curved_line_painter.dart';
import 'package:syncrow_web/pages/spaces_management/view/dialogs/create_space_dialog.dart';
@ -172,7 +174,7 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
selectedCommunity!.name, // Show community name
style: const TextStyle(
fontSize: 16,
color: ColorsManager.blackColor, // Slightly muted color
color: ColorsManager.blackColor,
),
),
]
@ -294,31 +296,3 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
}
}
// Function to open the Create Space dialog
// Model for storing space information
class SpaceData {
final String name;
final String icon;
Offset position;
bool isHovered;
SpaceData({
required this.name,
required this.icon,
required this.position,
this.isHovered = false,
});
}
// Class for connection lines between spaces
class Connection {
final SpaceData startSpace;
final SpaceData endSpace;
final String direction;
Connection(
{required this.startSpace,
required this.endSpace,
required this.direction});
}