feat(рецепты): количество рецептов по фильтров

This commit is contained in:
mso7nueh
2024-09-02 16:30:53 +03:00
parent 334a6b0970
commit 8335cf4a6e
4 changed files with 33 additions and 3 deletions

View File

@@ -51,7 +51,6 @@ class _TagsModalWidgetState extends State<TagsModalWidget> {
borderRadius: BorderRadius.circular(16),
),
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
label: Text(tag.name),
labelStyle: TextStyle(
color: isSelected ? Colors.white : appTheme.gray600,
fontWeight: FontWeight.w500,
@@ -60,6 +59,9 @@ class _TagsModalWidgetState extends State<TagsModalWidget> {
selected: isSelected,
backgroundColor: appTheme.gray100,
onSelected: (bool selected) => context.read<RecipesCubit>().updateTags(tag),
label: Text(
'${tag.name} ${tag.recipesCount}',
),
);
}
}