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