diff --git a/lib/pages/spaces_management/space_model/widgets/space_model_card_widget.dart b/lib/pages/spaces_management/space_model/widgets/space_model_card_widget.dart index 51386cb4..1ecc247c 100644 --- a/lib/pages/spaces_management/space_model/widgets/space_model_card_widget.dart +++ b/lib/pages/spaces_management/space_model/widgets/space_model_card_widget.dart @@ -188,63 +188,59 @@ class SpaceModelCardWidget extends StatelessWidget { fit: BoxFit.contain, ), ), - InkWell( - onTap: () { - showDialog( - context: 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( + if (!topActionsDisabled) + InkWell( + onTap: () { + _showDeleteDialog(context); + }, child: SvgPicture.asset( - Assets.deleteSpaceModel, // Your actual SVG path - width: 20, - height: 20, - colorFilter: const ColorFilter.mode( - Colors.grey, BlendMode.srcIn), + 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( + // Assets.deleteSpaceModel, // Your actual SVG path + // width: 20, + // height: 20, + // colorFilter: const ColorFilter.mode( + // Colors.grey, BlendMode.srcIn), + // ), + // ), + // ), + // ), ], ), if (!showOnlyName) ...[