From 1b5453813633569ff3be45d7a046b7f23dbedf82 Mon Sep 17 00:00:00 2001 From: 4sterisk <4sterisk@ymail.ne.jp> Date: Wed, 11 Dec 2024 07:13:35 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E3=82=BF=E3=83=96=E3=81=AE=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E3=82=92=E8=A8=AD=E5=AE=9A=E5=BE=8C=E3=81=99=E3=81=90?= =?UTF-8?q?=E3=81=AB=E5=8F=8D=E6=98=A0=E3=81=95=E3=82=8C=E3=82=8B=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/view/time_line_page/time_line_page.dart | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/lib/view/time_line_page/time_line_page.dart b/lib/view/time_line_page/time_line_page.dart index 09727011f..02eaec2da 100644 --- a/lib/view/time_line_page/time_line_page.dart +++ b/lib/view/time_line_page/time_line_page.dart @@ -205,6 +205,11 @@ class TimeLinePageState extends ConsumerState { generalSettingsRepositoryProvider .select((value) => value.settings.isDeckMode), ); + final tabPosition = ref.watch( + generalSettingsRepositoryProvider + .select((value) => value.settings.tabPosition), + ); + if (deckMode) return const TimelineTablet(); timelineRepository = ref.watch(timelineProvider(currentTabSetting)); @@ -227,12 +232,7 @@ class TimeLinePageState extends ConsumerState { body: SafeArea( child: Column( children: [ - if (ref - .read(generalSettingsRepositoryProvider) - .settings - .tabPosition == - TabPosition.top) - buildAppbar(), + if (tabPosition == TabPosition.top) buildAppbar(), Container( decoration: BoxDecoration( border: Border( @@ -386,11 +386,7 @@ class TimeLinePageState extends ConsumerState { ], ), ), - if (ref - .read(generalSettingsRepositoryProvider) - .settings - .tabPosition == - TabPosition.bottom && + if (tabPosition == TabPosition.bottom && !ref.watch(timelineFocusNode).hasFocus) buildAppbar(), ],