mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-16 01:56:24 +00:00
fixed spaces api
This commit is contained in:
@ -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});
|
||||
}
|
||||
|
Reference in New Issue
Block a user