Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Use shared toast in family flow

ashilkn3196e0ad5f9e
diff --git a/mobile/apps/photos/lib/ui/family/family_ui.dart b/mobile/apps/photos/lib/ui/family/family_ui.dart
index e258f1062c..4c9bb36e10 100644
--- a/mobile/apps/photos/lib/ui/family/family_ui.dart
+++ b/mobile/apps/photos/lib/ui/family/family_ui.dart
@@ -1,5 +1,6 @@
import 'package:flutter/material.dart';
import 'package:photos/theme/ente_theme.dart';
+import 'package:photos/ui/notification/toast.dart';
Color familyPageBackgroundColor(BuildContext context) {
return Theme.of(context).brightness == Brightness.dark
@@ -67,14 +68,5 @@ class FamilyPageScaffold extends StatelessWidget {
}
void showFamilySnackBar(BuildContext context, String message) {
- final messenger = ScaffoldMessenger.of(context);
- messenger
- ..hideCurrentSnackBar()
- ..showSnackBar(
- SnackBar(
- content: Text(message),
- behavior: SnackBarBehavior.floating,
- margin: const EdgeInsets.fromLTRB(16, 0, 16, 16),
- ),
- );
+ showShortToast(context, message);
}