@@ -118,29 +118,32 @@ class _AddBottomSheetState extends State<AddBottomSheet> {
118
118
},
119
119
),
120
120
),
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
+ ),
136
146
),
137
- ),
138
- onPressed: () {
139
- pickTorrentFile ();
140
- Navigator .pop (context);
141
- },
142
- ),
143
- ),
144
147
],
145
148
),
146
149
),
0 commit comments