Added account permissions and ui for recipient

This commit is contained in:
Arseni
2025-11-26 13:03:52 +03:00
parent fcb5ab4f2c
commit 357af99564
23 changed files with 507 additions and 70 deletions

View File

@@ -13,6 +13,7 @@ class PayoutSidebar extends StatelessWidget {
this.onLogout,
this.userName,
this.avatarUrl,
this.items,
});
final PayoutDestination selected;
@@ -21,11 +22,13 @@ class PayoutSidebar extends StatelessWidget {
final String? userName;
final String? avatarUrl;
final List<PayoutDestination>? items;
@override
Widget build(BuildContext context) {
final items = [
final menuItems = items ??
<PayoutDestination>[
PayoutDestination.dashboard,
PayoutDestination.recipients,
PayoutDestination.methods,
@@ -49,11 +52,11 @@ class PayoutSidebar extends StatelessWidget {
theme: theme,
avatarUrl: avatarUrl,
userName: userName,
items: items,
items: menuItems,
selected: selected,
onSelected: onSelected,
),
],
);
}
}
}