From bcc1bd63dcd8e5fd17623287a4448b63118ed708 Mon Sep 17 00:00:00 2001 From: Npepperlinux Date: Sat, 16 Nov 2024 09:43:35 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=8C=E7=B6=9A=E3=81=8D=E3=82=92?= =?UTF-8?q?=E8=AA=AD=E3=81=BF=E8=BE=BC=E3=82=80=E3=80=8D=E3=83=9C=E3=82=BF?= =?UTF-8?q?=E3=83=B3=E3=82=92=E6=A8=AA=E5=BA=83=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/view/common/pushable_listview.dart | 13 ++++++------- lib/view/time_line_page/misskey_time_line.dart | 11 ++++++++--- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/lib/view/common/pushable_listview.dart b/lib/view/common/pushable_listview.dart index 4c48f9986..13f282c54 100644 --- a/lib/view/common/pushable_listview.dart +++ b/lib/view/common/pushable_listview.dart @@ -154,13 +154,12 @@ class PushableListView extends HookConsumerWidget { const SizedBox.shrink(), ], ), - Center( - child: Padding( - padding: const EdgeInsets.only(top: 10, bottom: 10), - child: IconButton( - onPressed: nextLoad, - icon: const Icon(Icons.keyboard_arrow_down), - ), + InkWell( + onTap: nextLoad, + child: Container( + alignment: Alignment.center, + height: 60, + child: const Icon(Icons.keyboard_arrow_down), ), ), ], diff --git a/lib/view/time_line_page/misskey_time_line.dart b/lib/view/time_line_page/misskey_time_line.dart index b154909fc..bd6fd606c 100644 --- a/lib/view/time_line_page/misskey_time_line.dart +++ b/lib/view/time_line_page/misskey_time_line.dart @@ -125,9 +125,14 @@ class MisskeyTimeline extends HookConsumerWidget { } return Center( - child: IconButton( - onPressed: downDirectionLoad, - icon: const Icon(Icons.keyboard_arrow_down), + child: InkWell( + onTap: downDirectionLoad, + child: Container( + alignment: Alignment.center, + constraints: const BoxConstraints(maxWidth: 800), + height: 60, + child: const Icon(Icons.keyboard_arrow_down), + ), ), ); } From e3c3373dfcac8df4e5b56411bdb01a132380d3c2 Mon Sep 17 00:00:00 2001 From: Npepperlinux Date: Sun, 17 Nov 2024 00:37:57 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=E3=83=86=E3=82=B9=E3=83=88=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/test_util/widget_tester_extension.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_util/widget_tester_extension.dart b/test/test_util/widget_tester_extension.dart index f3d15a833..fc8b3a3d0 100644 --- a/test/test_util/widget_tester_extension.dart +++ b/test/test_util/widget_tester_extension.dart @@ -15,8 +15,8 @@ extension WidgetTestExtension on WidgetTester { await tap( find.descendant( of: find.descendant( - of: find.byType(Center), - matching: find.byType(IconButton).hitTestable(), + of: find.byType(InkWell), + matching: find.byType(Container).hitTestable(), ), matching: find.byIcon(Icons.keyboard_arrow_down), ),