You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/Components/RSSFeedHomePage.dart
+21Lines changed: 21 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -76,6 +76,24 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
76
76
super.initState();
77
77
}
78
78
79
+
// clearing the fields in Feeds tabs after tappping save button
80
+
voidclearFeedsFields() {
81
+
labelController.clear();
82
+
urlController.clear();
83
+
intervalController.clear();
84
+
}
85
+
86
+
voidclearDownloadRulesFields() {
87
+
labelRulesController.clear();
88
+
matchpatternController.clear();
89
+
excludepatternController.clear();
90
+
destinationController.clear();
91
+
tagsController.clear();
92
+
startOnLoad =false;
93
+
useAsBasePath =false;
94
+
applicableFeedSelected =null;
95
+
}
96
+
79
97
@override
80
98
Widgetbuild(BuildContext context) {
81
99
returnConsumer<ClientSettingsProvider>(
@@ -710,6 +728,7 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
710
728
FeedsApi
711
729
.listAllFeedsAndRules(
712
730
context: context);
731
+
clearFeedsFields();
713
732
if (isUpdateFeedSelected) {
714
733
UpdateFeedApi.updateFeed(
715
734
type:"feed",
@@ -1756,6 +1775,7 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
1756
1775
MainAxisAlignment.center,
1757
1776
children: [
1758
1777
DropdownButtonFormField2(
1778
+
value: applicableFeedSelected,
1759
1779
decoration:InputDecoration(
1760
1780
//Add isDense true and zero Padding.
1761
1781
//Add Horizontal padding using buttonPadding and Vertical padding by increasing buttonHeight instead of add Padding here so that The whole TextFormField Button become clickable, and also the dropdown menu open under The whole TextFormField Button.
@@ -2240,6 +2260,7 @@ class _RSSFeedHomePageState extends State<RSSFeedHomePage>
0 commit comments