From 66e76752e2a81813a9560a8b2e4cddc67464aa9e Mon Sep 17 00:00:00 2001 From: stonega Date: Sat, 6 Feb 2021 23:41:30 +0800 Subject: [PATCH] Add splashradius to buttons. --- lib/home/download_list.dart | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/home/download_list.dart b/lib/home/download_list.dart index e143486..6399f88 100644 --- a/lib/home/download_list.dart +++ b/lib/home/download_list.dart @@ -22,12 +22,14 @@ Widget _downloadButton(EpisodeTask task, BuildContext context) { mainAxisSize: MainAxisSize.min, children: [ IconButton( + splashRadius: 20, icon: Icon( Icons.pause_circle_filled, ), onPressed: () => downloader.pauseTask(task.episode), ), IconButton( + splashRadius: 20, icon: Icon(Icons.close), onPressed: () => downloader.delTask(task.episode), ), @@ -38,10 +40,12 @@ Widget _downloadButton(EpisodeTask task, BuildContext context) { mainAxisSize: MainAxisSize.min, children: [ IconButton( + splashRadius: 20, icon: Icon(Icons.refresh, color: Colors.red), onPressed: () => downloader.retryTask(task.episode), ), IconButton( + splashRadius: 20, icon: Icon(Icons.close), onPressed: () => downloader.delTask(task.episode), ), @@ -50,10 +54,12 @@ Widget _downloadButton(EpisodeTask task, BuildContext context) { case 6: return Row(mainAxisSize: MainAxisSize.min, children: [ IconButton( + splashRadius: 20, icon: Icon(Icons.play_circle_filled), onPressed: () => downloader.resumeTask(task.episode), ), IconButton( + splashRadius: 20, icon: Icon(Icons.close), onPressed: () => downloader.delTask(task.episode), ),