newUserMessage function

Widget newUserMessage(
  1. BuildContext context,
  2. 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.',
    ),
  );
}