|
@@ -1,5 +1,6 @@
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
import 'package:flutter/widgets.dart';
|
|
|
|
+import 'package:fluttertoast/fluttertoast.dart';
|
|
import 'package:photos/folder_service.dart';
|
|
import 'package:photos/folder_service.dart';
|
|
import 'package:photos/models/folder.dart';
|
|
import 'package:photos/models/folder.dart';
|
|
import 'package:photos/ui/loading_widget.dart';
|
|
import 'package:photos/ui/loading_widget.dart';
|
|
@@ -64,6 +65,14 @@ class _ShareFolderWidgetState extends State<ShareFolderWidget> {
|
|
_folder.sharedWith.clear();
|
|
_folder.sharedWith.clear();
|
|
_folder.sharedWith.addAll(sharedWith);
|
|
_folder.sharedWith.addAll(sharedWith);
|
|
await FolderSharingService.instance.updateFolder(_folder);
|
|
await FolderSharingService.instance.updateFolder(_folder);
|
|
|
|
+ Fluttertoast.showToast(
|
|
|
|
+ msg: "Sharing configuration updated successfully.",
|
|
|
|
+ toastLength: Toast.LENGTH_SHORT,
|
|
|
|
+ gravity: ToastGravity.BOTTOM,
|
|
|
|
+ timeInSecForIosWeb: 1,
|
|
|
|
+ backgroundColor: Colors.grey[600],
|
|
|
|
+ textColor: Colors.white,
|
|
|
|
+ fontSize: 16.0);
|
|
Navigator.of(context).pop();
|
|
Navigator.of(context).pop();
|
|
},
|
|
},
|
|
),
|
|
),
|