File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import 'package:flood_mobile/Api/update_feed_api.dart';
5
5
import 'package:flood_mobile/Model/single_feed_and_response_model.dart' ;
6
6
import 'package:flood_mobile/Provider/home_provider.dart' ;
7
7
import 'package:flutter/material.dart' ;
8
+ import 'package:flood_mobile/Components/flood_snackbar.dart' ;
8
9
import 'package:provider/provider.dart' ;
9
10
import '../Api/delete_feeds_and_rules.dart' ;
10
11
import '../Api/feed_api.dart' ;
@@ -610,6 +611,16 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
610
611
context: context,
611
612
);
612
613
}
614
+ final addFeedSnackbar =
615
+ addFloodSnackBar (
616
+ SnackbarType
617
+ .information,
618
+ 'New Feed added successfully' ,
619
+ 'Dismiss' );
620
+
621
+ ScaffoldMessenger .of (context)
622
+ .showSnackBar (
623
+ addFeedSnackbar);
613
624
FeedsApi .listAllFeedsAndRules (
614
625
context: context);
615
626
if (isUpdateFeedSelected) {
@@ -1984,6 +1995,16 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
1984
1995
count: 0 ,
1985
1996
context: context,
1986
1997
);
1998
+ final addRuleSnackbar =
1999
+ addFloodSnackBar (
2000
+ SnackbarType
2001
+ .information,
2002
+ 'New Rule added successfully' ,
2003
+ 'Dismiss' );
2004
+
2005
+ ScaffoldMessenger .of (context)
2006
+ .showSnackBar (
2007
+ addRuleSnackbar);
1987
2008
FeedsApi .listAllFeedsAndRules (
1988
2009
context: context);
1989
2010
});
You can’t perform that action at this time.
0 commit comments