From 4265ba11fe211f13e6e1114e692d5ec982d63e3e Mon Sep 17 00:00:00 2001 From: Moustapha Kodjo Amadou <107993382+kodjodevf@users.noreply.github.com> Date: Wed, 22 Jan 2025 10:30:37 +0100 Subject: [PATCH] refactor: remove unnecessary iOS view checks and adjust animation duration in reader view --- lib/modules/manga/reader/reader_view.dart | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/modules/manga/reader/reader_view.dart b/lib/modules/manga/reader/reader_view.dart index 5ef8399c..878caa16 100644 --- a/lib/modules/manga/reader/reader_view.dart +++ b/lib/modules/manga/reader/reader_view.dart @@ -1269,9 +1269,6 @@ class _MangaChapterPageGalleryState } Widget _appBar() { - if (!_isView && Platform.isIOS) { - return const SizedBox.shrink(); - } final fullScreenReader = ref.watch(fullScreenReaderStateProvider); double height = _isView ? Platform.isIOS @@ -1286,7 +1283,7 @@ class _MangaChapterPageGalleryState width: context.width(1), height: height, curve: Curves.ease, - duration: const Duration(milliseconds: 200), + duration: const Duration(milliseconds: 300), child: PreferredSize( preferredSize: Size.fromHeight(height), child: AppBar( @@ -1383,9 +1380,6 @@ class _MangaChapterPageGalleryState } Widget _bottomBar() { - if (!_isView && Platform.isIOS) { - return const SizedBox.shrink(); - } bool hasPrevChapter = _readerController.getChapterIndex().$1 + 1 != _readerController .getChaptersLength(_readerController.getChapterIndex().$2);