emptyState method
dynamic
emptyState( - dynamic context
)
Implementation
Widget emptyState(BuildContext context) {
return Center(
heightFactor: 1.5,
child: EmptyState(
title: L10n.of(context).youAreNotAMemberOfAnySpaceYet,
subtitle: L10n.of(context).createOrJoinSpaceDescription,
image: 'assets/images/empty_home.svg',
primaryButton: ActerPrimaryActionButton(
onPressed: () => context.pushNamed(Routes.createSpace.name),
child: Text(L10n.of(context).createNewSpace),
),
secondaryButton: OutlinedButton(
onPressed: () => context.pushNamed(Routes.searchPublicDirectory.name),
child: Text(L10n.of(context).joinExistingSpace),
),
),
);
}