mirror of
https://github.com/ente-io/ente.git
synced 2025-05-02 20:09:14 +00:00
34 lines
979 B
Dart
34 lines
979 B
Dart
import "dart:async";
|
|
|
|
import "package:flutter/material.dart";
|
|
import "package:photos/generated/l10n.dart";
|
|
import "package:photos/ui/components/buttons/button_widget.dart";
|
|
import "package:photos/ui/components/dialog_widget.dart";
|
|
import "package:photos/ui/components/models/button_type.dart";
|
|
import "package:photos/utils/share_util.dart";
|
|
|
|
Future<void> showInviteDialog(BuildContext context, String email) async {
|
|
await showDialogWidget(
|
|
context: context,
|
|
title: S.of(context).inviteToEnte,
|
|
icon: Icons.info_outline,
|
|
body: S.of(context).emailNoEnteAccount(email),
|
|
isDismissible: true,
|
|
buttons: [
|
|
ButtonWidget(
|
|
buttonType: ButtonType.neutral,
|
|
icon: Icons.adaptive.share,
|
|
labelText: S.of(context).sendInvite,
|
|
isInAlert: true,
|
|
onTap: () async {
|
|
unawaited(
|
|
shareText(
|
|
S.of(context).shareTextRecommendUsingEnte,
|
|
),
|
|
);
|
|
},
|
|
),
|
|
],
|
|
);
|
|
}
|