newUserMessage function
- BuildContext context,
- Notification notification
Message builder for NotificationType.newUser.
Implementation
Widget newUserMessage(BuildContext context, Notification notification) {
final user = context.watch<UserRepository>();
return Skeletonizer(
enabled: !user.state.hasData,
child: Text(
'Welcome to $kAppName, ${user.state.data?.firstname ?? 'Loading'}! We hope you enjoy your stay.',
),
);
}