File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ import 'dart:io';
4
4
import 'package:clipboard/clipboard.dart' ;
5
5
import 'package:file_picker/file_picker.dart' ;
6
6
import 'package:flood_mobile/Api/torrent_api.dart' ;
7
+ import 'package:flood_mobile/Components/flood_snackbar.dart' ;
7
8
import 'package:flood_mobile/Constants/theme_provider.dart' ;
8
9
import 'package:flood_mobile/Model/client_settings_model.dart' ;
9
10
import 'package:flutter/material.dart' ;
@@ -267,6 +268,13 @@ class _AddTorrentSheetState extends State<AddTorrentSheet> {
267
268
Navigator .pop (context);
268
269
}
269
270
}
271
+ final addTorrentSnackbar = addFloodSnackBar (
272
+ SnackbarType .information,
273
+ 'Torrent added successfully' ,
274
+ 'Dismiss' );
275
+
276
+ ScaffoldMessenger .of (context)
277
+ .showSnackBar (addTorrentSnackbar);
270
278
},
271
279
style: ElevatedButton .styleFrom (
272
280
elevation: 0 ,
@@ -279,9 +287,10 @@ class _AddTorrentSheetState extends State<AddTorrentSheet> {
279
287
child: Text (
280
288
"Add Torrent" ,
281
289
style: TextStyle (
282
- color: Colors .white,
283
- fontSize: 16 ,
284
- fontWeight: FontWeight .w600),
290
+ color: Colors .white,
291
+ fontSize: 16 ,
292
+ fontWeight: FontWeight .w600,
293
+ ),
285
294
),
286
295
),
287
296
),
You can’t perform that action at this time.
0 commit comments