mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-15 09:45:25 +00:00
removed center
This commit is contained in:
@ -174,8 +174,8 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
|||||||
size: Size(2000, 2000), // Explicit canvas size
|
size: Size(2000, 2000), // Explicit canvas size
|
||||||
painter: CurvedLinePainter(connections),
|
painter: CurvedLinePainter(connections),
|
||||||
),
|
),
|
||||||
Center(
|
|
||||||
child: spaces.isEmpty
|
spaces.isEmpty
|
||||||
? AddSpaceButton(
|
? AddSpaceButton(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
_showCreateSpaceDialog(screenSize);
|
_showCreateSpaceDialog(screenSize);
|
||||||
@ -189,10 +189,8 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
|||||||
index: entry.key,
|
index: entry.key,
|
||||||
screenSize: screenSize,
|
screenSize: screenSize,
|
||||||
position: spaces[entry.key].position,
|
position: spaces[entry.key].position,
|
||||||
isHovered:
|
isHovered: spaces[entry.key].isHovered,
|
||||||
spaces[entry.key].isHovered,
|
onPanUpdate: (int index, Offset delta) {
|
||||||
onPanUpdate:
|
|
||||||
(int index, Offset delta) {
|
|
||||||
setState(() {
|
setState(() {
|
||||||
spaces[index].position += delta;
|
spaces[index].position += delta;
|
||||||
});
|
});
|
||||||
@ -200,8 +198,7 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
|||||||
onHoverChanged:
|
onHoverChanged:
|
||||||
(int index, bool isHovered) {
|
(int index, bool isHovered) {
|
||||||
setState(() {
|
setState(() {
|
||||||
spaces[index].isHovered =
|
spaces[index].isHovered = isHovered;
|
||||||
isHovered;
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
onButtonTap: (int index,
|
onButtonTap: (int index,
|
||||||
@ -225,7 +222,6 @@ class SpaceManagementPageState extends State<SpaceManagementPage> {
|
|||||||
))
|
))
|
||||||
.toList(),
|
.toList(),
|
||||||
),
|
),
|
||||||
),
|
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user