space model changes

This commit is contained in:
mohammad
2025-03-06 11:50:47 +03:00
parent d75ac416eb
commit add34b327f

View File

@ -188,14 +188,10 @@ class SpaceModelCardWidget extends StatelessWidget {
fit: BoxFit.contain, fit: BoxFit.contain,
), ),
), ),
if (!topActionsDisabled)
InkWell( InkWell(
onTap: () { onTap: () {
showDialog( _showDeleteDialog(context);
context: context,
builder: (BuildContext dialogContext) {
return const LinkingAttentionDialog();
},
);
}, },
child: SvgPicture.asset( child: SvgPicture.asset(
Assets.deleteSpaceLinkIcon, Assets.deleteSpaceLinkIcon,
@ -204,47 +200,47 @@ class SpaceModelCardWidget extends StatelessWidget {
), ),
], ],
), ),
Expanded( // Expanded(
child: Text( // child: Text(
model.modelName, // model.modelName,
style: // style:
Theme.of(context).textTheme.headlineMedium?.copyWith( // Theme.of(context).textTheme.headlineMedium?.copyWith(
color: Colors.black, // color: Colors.black,
fontWeight: FontWeight.bold, // fontWeight: FontWeight.bold,
), // ),
maxLines: 1, // maxLines: 1,
overflow: TextOverflow.ellipsis, // overflow: TextOverflow.ellipsis,
), // ),
), // ),
if (!topActionsDisabled) // if (!topActionsDisabled)
GestureDetector( // GestureDetector(
onTap: () => _showDeleteDialog(context), // onTap: () => _showDeleteDialog(context),
child: Container( // child: Container(
width: 36, // Adjust size as needed // width: 36, // Adjust size as needed
height: 36, // height: 36,
decoration: BoxDecoration( // decoration: BoxDecoration(
shape: BoxShape.circle, // shape: BoxShape.circle,
color: Colors.white, // color: Colors.white,
boxShadow: [ // boxShadow: [
BoxShadow( // BoxShadow(
color: Colors.black.withOpacity(0.1), // color: Colors.black.withOpacity(0.1),
spreadRadius: 2, // spreadRadius: 2,
blurRadius: 5, // blurRadius: 5,
offset: const Offset(0, 2), // offset: const Offset(0, 2),
), // ),
], // ],
), // ),
child: Center( // child: Center(
child: SvgPicture.asset( // child: SvgPicture.asset(
Assets.deleteSpaceModel, // Your actual SVG path // Assets.deleteSpaceModel, // Your actual SVG path
width: 20, // width: 20,
height: 20, // height: 20,
colorFilter: const ColorFilter.mode( // colorFilter: const ColorFilter.mode(
Colors.grey, BlendMode.srcIn), // Colors.grey, BlendMode.srcIn),
), // ),
), // ),
), // ),
), // ),
], ],
), ),
if (!showOnlyName) ...[ if (!showOnlyName) ...[