refactor: remove unnecessary iOS view checks and adjust animation duration in reader view
This commit is contained in:
parent
bc8e0cef47
commit
4265ba11fe
1 changed files with 1 additions and 7 deletions
|
|
@ -1269,9 +1269,6 @@ class _MangaChapterPageGalleryState
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _appBar() {
|
Widget _appBar() {
|
||||||
if (!_isView && Platform.isIOS) {
|
|
||||||
return const SizedBox.shrink();
|
|
||||||
}
|
|
||||||
final fullScreenReader = ref.watch(fullScreenReaderStateProvider);
|
final fullScreenReader = ref.watch(fullScreenReaderStateProvider);
|
||||||
double height = _isView
|
double height = _isView
|
||||||
? Platform.isIOS
|
? Platform.isIOS
|
||||||
|
|
@ -1286,7 +1283,7 @@ class _MangaChapterPageGalleryState
|
||||||
width: context.width(1),
|
width: context.width(1),
|
||||||
height: height,
|
height: height,
|
||||||
curve: Curves.ease,
|
curve: Curves.ease,
|
||||||
duration: const Duration(milliseconds: 200),
|
duration: const Duration(milliseconds: 300),
|
||||||
child: PreferredSize(
|
child: PreferredSize(
|
||||||
preferredSize: Size.fromHeight(height),
|
preferredSize: Size.fromHeight(height),
|
||||||
child: AppBar(
|
child: AppBar(
|
||||||
|
|
@ -1383,9 +1380,6 @@ class _MangaChapterPageGalleryState
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _bottomBar() {
|
Widget _bottomBar() {
|
||||||
if (!_isView && Platform.isIOS) {
|
|
||||||
return const SizedBox.shrink();
|
|
||||||
}
|
|
||||||
bool hasPrevChapter = _readerController.getChapterIndex().$1 + 1 !=
|
bool hasPrevChapter = _readerController.getChapterIndex().$1 + 1 !=
|
||||||
_readerController
|
_readerController
|
||||||
.getChaptersLength(_readerController.getChapterIndex().$2);
|
.getChaptersLength(_readerController.getChapterIndex().$2);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue