|
@@ -1,4 +1,5 @@
|
|
|
import 'package:email_validator/email_validator.dart';
|
|
|
+import 'package:flutter/foundation.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:photos/core/configuration.dart';
|
|
|
import 'package:photos/models/collection.dart';
|
|
@@ -12,6 +13,7 @@ import 'package:photos/ui/components/menu_item_widget.dart';
|
|
|
import 'package:photos/ui/components/menu_section_description_widget.dart';
|
|
|
import 'package:photos/ui/components/menu_section_title.dart';
|
|
|
import 'package:photos/ui/sharing/user_avator_widget.dart';
|
|
|
+import 'package:photos/utils/toast_util.dart';
|
|
|
|
|
|
class AddParticipantPage extends StatefulWidget {
|
|
|
final Collection collection;
|
|
@@ -166,7 +168,11 @@ class _AddParticipantPage extends State<AddParticipantPage> {
|
|
|
pressedColor: getEnteColorScheme(context).fillFaint,
|
|
|
trailingIcon: !selectAsViewer ? Icons.check : null,
|
|
|
onTap: () async {
|
|
|
- setState(() => {selectAsViewer = false});
|
|
|
+ if (kDebugMode) {
|
|
|
+ setState(() => {selectAsViewer = false});
|
|
|
+ } else {
|
|
|
+ showShortToast(context, "Support coming soon");
|
|
|
+ }
|
|
|
},
|
|
|
isBottomBorderRadiusRemoved: true,
|
|
|
),
|