feat: card

This commit is contained in:
BLoC
2025-02-28 16:48:49 +03:00
parent 9251bcbff1
commit cebbb4fb2d
7 changed files with 167 additions and 61 deletions

View File

@@ -57,18 +57,17 @@ class MenuScreen extends StatelessWidget {
onTap: () => GoRouter.of(context).push(MyPlansScreen.path),
),
_divider(context),
if (!profileModel.roles.contains('consultant'))
_tile(
leading: 'assets/icons/finance.svg',
title: 'Мои финансы',
onTap: () => GoRouter.of(context).pushNamed('consultantFinanceScreen'),
)
else
_tile(
leading: 'assets/icons/finance.svg',
title: 'Мои финансы',
onTap: () => GoRouter.of(context).pushNamed('userFinanceScreen'),
),
_tile(
leading: 'assets/icons/finance.svg',
title: 'Мои финансы',
onTap: () {
if (profileModel.roles.contains('consultant')) {
GoRouter.of(context).pushNamed('consultantFinanceScreen');
} else {
GoRouter.of(context).pushNamed('userFinanceScreen');
}
},
),
_divider(context),
_tile(
leading: 'assets/icons/calendar.svg',