Skip to content

Commit

Permalink
refactor: removed unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
harchani-ritik committed Oct 11, 2020
1 parent 86d5d0f commit 61715b8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 88 deletions.
66 changes: 0 additions & 66 deletions lib/components/add_dialog.dart

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class AddBottomSheet extends StatelessWidget {
horizontal: wp * 0.35,
),
height: 5,
color: Color(0xffE8E8E8),
color: Theme.of(context).primaryColor,
),
SizedBox(
height: 20,
Expand Down
22 changes: 1 addition & 21 deletions lib/screens/main_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@ import 'dart:async';
import 'package:package_info/package_info.dart';
import 'package:provider/provider.dart';
import 'package:rutorrentflutter/api/api_requests.dart';
import 'package:rutorrentflutter/components/add_bottom_sheet.dart';
import 'package:rutorrentflutter/components/add_url_bottom_sheet.dart';
import 'package:rutorrentflutter/components/disk_space_block.dart';
import 'package:rutorrentflutter/components/add_dialog.dart';
import 'package:rutorrentflutter/models/settings.dart';
import 'package:rutorrentflutter/screens/disk_explorer_screen.dart';
import 'package:rutorrentflutter/screens/history_screen.dart';
Expand Down Expand Up @@ -352,15 +351,6 @@ class _MainScreenState extends State<MainScreen> {
},
dialogHint: 'Enter Torrent Url');
});
// showDialog(
// context: context,
// builder: (context) {
// return AddDialog(
// dialogHint: 'Enter Torrent Url',
// apiRequest: (url) {
// ApiRequests.addTorrent(api, url);
// });
// });
} else {
showModalBottomSheet(
context: context,
Expand All @@ -372,16 +362,6 @@ class _MainScreenState extends State<MainScreen> {
},
dialogHint: 'Enter Rss Url');
});
// showDialog(
// context: context,
// builder: (context) {
// return AddDialog(
// dialogHint: 'Enter Rss Url',
// apiRequest: (url) async {
// await ApiRequests.addRSS(api, url);
// setState(() {});
// });
// });
}
}),
);
Expand Down

0 comments on commit 61715b8

Please sign in to comment.