mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
select space
This commit is contained in:
@ -150,6 +150,9 @@ class _CommunityStructureAreaState extends State<CommunityStructureArea> {
|
||||
onDoubleTap: () {
|
||||
_showEditSpaceDialog(visibleSpaces[index]);
|
||||
},
|
||||
onTap: (){
|
||||
_selectSpace(visibleSpaces[index]);
|
||||
},
|
||||
icon: visibleSpaces[index].icon ?? '',
|
||||
name: visibleSpaces[index].name,
|
||||
);
|
||||
@ -555,4 +558,9 @@ class _CommunityStructureAreaState extends State<CommunityStructureArea> {
|
||||
..translate(dx, dy)
|
||||
..scale(1.2);
|
||||
}
|
||||
|
||||
void _selectSpace(SpaceModel space){
|
||||
print(space.name);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -7,12 +7,14 @@ class SpaceContainerWidget extends StatelessWidget {
|
||||
final String icon;
|
||||
final String name;
|
||||
final VoidCallback? onDoubleTap;
|
||||
final VoidCallback? onTap;
|
||||
|
||||
const SpaceContainerWidget({
|
||||
super.key,
|
||||
required this.index,
|
||||
required this.icon,
|
||||
required this.name,
|
||||
this.onTap,
|
||||
this.onDoubleTap,
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user