File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ import 'package:provider/provider.dart';
9
9
import '../Api/torrent_api.dart' ;
10
10
import '../Constants/theme_provider.dart' ;
11
11
import '../Provider/client_provider.dart' ;
12
+ import 'flood_snackbar.dart' ;
12
13
13
14
class BottomFloatingMenuButton extends StatefulWidget {
14
15
@override
@@ -301,6 +302,15 @@ class _BottomFloatingMenuButtonState extends State<BottomFloatingMenuButton>
301
302
sequentialDownload,
302
303
isCompleted: completed,
303
304
context: context);
305
+ final addTorrentSnackbar =
306
+ addFloodSnackBar (
307
+ SnackbarType .information,
308
+ 'Torrent added successfully' ,
309
+ 'Dismiss' );
310
+
311
+ ScaffoldMessenger .of (context)
312
+ .showSnackBar (
313
+ addTorrentSnackbar);
304
314
Navigator .pop (context);
305
315
},
306
316
style: ElevatedButton .styleFrom (
You can’t perform that action at this time.
0 commit comments