Skip to content

Commit 0705bfd

Browse files
Removed Browse Torrent File option from bottom sheet in Feeds Page (#49)
* Removed Browse Torrent File from the bottom sheet in feeds page
1 parent cdfdd8b commit 0705bfd

File tree

1 file changed

+25
-22
lines changed

1 file changed

+25
-22
lines changed

lib/components/add_url_bottom_sheet.dart

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -118,29 +118,32 @@ class _AddBottomSheetState extends State<AddBottomSheet> {
118118
},
119119
),
120120
),
121-
Container(
122-
padding: const EdgeInsets.symmetric(vertical: 16, horizontal: 36),
123-
width: double.infinity,
124-
child: RaisedButton(
125-
shape: RoundedRectangleBorder(
126-
borderRadius: BorderRadius.circular(5.0),
127-
side: BorderSide(color: Theme.of(context).primaryColor),
128-
),
129-
color: Theme.of(context).primaryColor,
130-
child: Padding(
131-
padding:
132-
const EdgeInsets.symmetric(horizontal: 28, vertical: 16),
133-
child: Text(
134-
'Browse Torrent File',
135-
style: TextStyle(color: Colors.white, fontSize: 18),
121+
(widget.dialogHint == "Enter Rss Url")
122+
? Container()
123+
: Container(
124+
padding: const EdgeInsets.symmetric(
125+
vertical: 16, horizontal: 36),
126+
width: double.infinity,
127+
child: RaisedButton(
128+
shape: RoundedRectangleBorder(
129+
borderRadius: BorderRadius.circular(5.0),
130+
side: BorderSide(color: Theme.of(context).primaryColor),
131+
),
132+
color: Theme.of(context).primaryColor,
133+
child: Padding(
134+
padding: const EdgeInsets.symmetric(
135+
horizontal: 28, vertical: 16),
136+
child: Text(
137+
'Browse Torrent File',
138+
style: TextStyle(color: Colors.white, fontSize: 18),
139+
),
140+
),
141+
onPressed: () {
142+
pickTorrentFile();
143+
Navigator.pop(context);
144+
},
145+
),
136146
),
137-
),
138-
onPressed: () {
139-
pickTorrentFile();
140-
Navigator.pop(context);
141-
},
142-
),
143-
),
144147
],
145148
),
146149
),

0 commit comments

Comments
 (0)