mirror of
https://github.com/SyncrowIOT/web.git
synced 2025-07-10 07:07:19 +00:00
space model changes
This commit is contained in:
@ -188,63 +188,59 @@ class SpaceModelCardWidget extends StatelessWidget {
|
|||||||
fit: BoxFit.contain,
|
fit: BoxFit.contain,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
InkWell(
|
if (!topActionsDisabled)
|
||||||
onTap: () {
|
InkWell(
|
||||||
showDialog(
|
onTap: () {
|
||||||
context: context,
|
_showDeleteDialog(context);
|
||||||
builder: (BuildContext dialogContext) {
|
},
|
||||||
return const LinkingAttentionDialog();
|
|
||||||
},
|
|
||||||
);
|
|
||||||
},
|
|
||||||
child: SvgPicture.asset(
|
|
||||||
Assets.deleteSpaceLinkIcon,
|
|
||||||
fit: BoxFit.contain,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
Expanded(
|
|
||||||
child: Text(
|
|
||||||
model.modelName,
|
|
||||||
style:
|
|
||||||
Theme.of(context).textTheme.headlineMedium?.copyWith(
|
|
||||||
color: Colors.black,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
),
|
|
||||||
maxLines: 1,
|
|
||||||
overflow: TextOverflow.ellipsis,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
if (!topActionsDisabled)
|
|
||||||
GestureDetector(
|
|
||||||
onTap: () => _showDeleteDialog(context),
|
|
||||||
child: Container(
|
|
||||||
width: 36, // Adjust size as needed
|
|
||||||
height: 36,
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
shape: BoxShape.circle,
|
|
||||||
color: Colors.white,
|
|
||||||
boxShadow: [
|
|
||||||
BoxShadow(
|
|
||||||
color: Colors.black.withOpacity(0.1),
|
|
||||||
spreadRadius: 2,
|
|
||||||
blurRadius: 5,
|
|
||||||
offset: const Offset(0, 2),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
child: Center(
|
|
||||||
child: SvgPicture.asset(
|
child: SvgPicture.asset(
|
||||||
Assets.deleteSpaceModel, // Your actual SVG path
|
Assets.deleteSpaceLinkIcon,
|
||||||
width: 20,
|
fit: BoxFit.contain,
|
||||||
height: 20,
|
|
||||||
colorFilter: const ColorFilter.mode(
|
|
||||||
Colors.grey, BlendMode.srcIn),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
|
// Expanded(
|
||||||
|
// child: Text(
|
||||||
|
// model.modelName,
|
||||||
|
// style:
|
||||||
|
// Theme.of(context).textTheme.headlineMedium?.copyWith(
|
||||||
|
// color: Colors.black,
|
||||||
|
// fontWeight: FontWeight.bold,
|
||||||
|
// ),
|
||||||
|
// maxLines: 1,
|
||||||
|
// overflow: TextOverflow.ellipsis,
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// if (!topActionsDisabled)
|
||||||
|
// GestureDetector(
|
||||||
|
// onTap: () => _showDeleteDialog(context),
|
||||||
|
// child: Container(
|
||||||
|
// width: 36, // Adjust size as needed
|
||||||
|
// height: 36,
|
||||||
|
// decoration: BoxDecoration(
|
||||||
|
// shape: BoxShape.circle,
|
||||||
|
// color: Colors.white,
|
||||||
|
// boxShadow: [
|
||||||
|
// BoxShadow(
|
||||||
|
// color: Colors.black.withOpacity(0.1),
|
||||||
|
// spreadRadius: 2,
|
||||||
|
// blurRadius: 5,
|
||||||
|
// offset: const Offset(0, 2),
|
||||||
|
// ),
|
||||||
|
// ],
|
||||||
|
// ),
|
||||||
|
// child: Center(
|
||||||
|
// child: SvgPicture.asset(
|
||||||
|
// Assets.deleteSpaceModel, // Your actual SVG path
|
||||||
|
// width: 20,
|
||||||
|
// height: 20,
|
||||||
|
// colorFilter: const ColorFilter.mode(
|
||||||
|
// Colors.grey, BlendMode.srcIn),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
|
// ),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
if (!showOnlyName) ...[
|
if (!showOnlyName) ...[
|
||||||
|
Reference in New Issue
Block a user