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(
      context.t.notification_newUser(kAppName, user.state.data?.firstname ?? context.t.global_loading),
    ),
  );
}