forked from eatvio/eatvio_app
feat(insights): added kbju fetching for analitics
This commit is contained in:
@@ -260,6 +260,14 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
padding: const EdgeInsets.only(bottom: 16),
|
||||
child: _badges(state),
|
||||
),
|
||||
// Доступ решает сервер: консультант видит клиента, пока консультация
|
||||
// не завершена, остальные — только публичные профили; иначе 403 и блок скрыт.
|
||||
if (!state.profile.isBlockedByMe &&
|
||||
!state.profile.isBlockedByAuthor)
|
||||
Padding(
|
||||
padding: const EdgeInsets.only(bottom: 16),
|
||||
child: InsightsCard(slug: state.profile.slug),
|
||||
),
|
||||
if (state.profile.isBlockedByAuthor)
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
|
||||
Reference in New Issue
Block a user