fix: shouln't be able to see "My contacts" menu if you have no safes.

This commit is contained in:
poka 2022-12-14 19:21:51 +01:00
parent bca3082845
commit 71d222307b
1 changed files with 14 additions and 13 deletions

View File

@ -164,19 +164,20 @@ class _HomeScreenState extends State<HomeScreen> {
);
},
),
ListTile(
key: keyContacts,
title: Text('contactsManagement'.tr()),
onTap: () {
Navigator.pop(context);
Navigator.push(
context,
MaterialPageRoute(builder: (context) {
return const ContactsScreen();
}),
);
},
),
if (isWalletsExists)
ListTile(
key: keyContacts,
title: Text('contactsManagement'.tr()),
onTap: () {
Navigator.pop(context);
Navigator.push(
context,
MaterialPageRoute(builder: (context) {
return const ContactsScreen();
}),
);
},
),
])),
Align(
alignment: FractionalOffset.bottomCenter,