forked from eatvio/eatvio_app
feat(рецепты): количество рецептов по фильтров
This commit is contained in:
@@ -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}',
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user