add close button color

This commit is contained in:
hannathkadher
2025-01-16 00:10:45 +04:00
parent a7256c8d5d
commit c12c73f20a

View File

@ -23,8 +23,8 @@ class AssignTagModelsDialog extends StatelessWidget {
final String spaceName;
final String title;
const AssignTagModelsDialog({
Key? key,
const AssignTagModelsDialog(
{Key? key,
required this.products,
required this.subspaces,
required this.addedProducts,
@ -32,8 +32,8 @@ class AssignTagModelsDialog extends StatelessWidget {
this.onTagsAssigned,
this.allTags,
required this.spaceName,
required this.title
}) : super(key: key);
required this.title})
: super(key: key);
@override
Widget build(BuildContext context) {
@ -123,10 +123,25 @@ class AssignTagModelsDialog extends StatelessWidget {
tag.product?.name ?? 'Unknown',
overflow: TextOverflow.ellipsis,
)),
IconButton(
icon: const Icon(Icons.close,
color: ColorsManager.warningRed,
size: 16),
const SizedBox(width: 10),
Container(
width: 20.0,
height: 20.0,
decoration: BoxDecoration(
shape: BoxShape.circle,
border: Border.all(
color: ColorsManager
.lightGrayColor,
width: 1.0,
),
),
child: IconButton(
icon: const Icon(
Icons.close,
color: ColorsManager
.lightGreyColor,
size: 16,
),
onPressed: () {
context
.read<AssignTagModelBloc>()
@ -135,7 +150,11 @@ class AssignTagModelsDialog extends StatelessWidget {
tags: state.tags));
},
tooltip: 'Delete Tag',
)
padding: EdgeInsets.zero,
constraints:
const BoxConstraints(),
),
),
],
),
),
@ -154,7 +173,6 @@ class AssignTagModelsDialog extends StatelessWidget {
));
},
decoration: const InputDecoration(
hintText: 'Enter Tag',
border: InputBorder.none,
),
style: const TextStyle(
@ -172,7 +190,8 @@ class AssignTagModelsDialog extends StatelessWidget {
color: ColorsManager.whiteColors,
icon: const Icon(
Icons.arrow_drop_down,
color: ColorsManager.blackColor),
color:
ColorsManager.blackColor),
onSelected: (value) {
controller.text = value;
context