forked from eatvio/eatvio_app
feat: card
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user