This commit is contained in:
kodjomoustapha 2024-05-14 15:06:12 +01:00
parent ad12fec52e
commit eeddf0d929

View file

@ -1426,41 +1426,41 @@ class _MangaChapterPageGalleryState
child: Column( child: Column(
children: [ children: [
Flexible( Flexible(
child: Row( child: Transform.scale(
children: [ scaleX: !_isReverseHorizontal ? 1 : -1,
Padding( child: Row(
padding: const EdgeInsets.all(8.0), children: [
child: CircleAvatar( Padding(
radius: 23, padding: const EdgeInsets.all(8.0),
backgroundColor: _backgroundColor(context), child: CircleAvatar(
child: IconButton( radius: 23,
onPressed: hasPrevChapter backgroundColor: _backgroundColor(context),
? () { child: IconButton(
pushReplacementMangaReaderView( onPressed: hasPrevChapter
context: context, ? () {
chapter: pushReplacementMangaReaderView(
_readerController.getPrevChapter()); context: context,
} chapter:
: null, _readerController.getPrevChapter());
icon: Transform.scale( }
scaleX: 1, : null,
child: Icon(Icons.skip_previous_rounded, icon: Transform.scale(
color: hasPrevChapter scaleX: 1,
? Theme.of(context) child: Icon(Icons.skip_previous_rounded,
.textTheme color: hasPrevChapter
.bodyLarge! ? Theme.of(context)
.color .textTheme
: Theme.of(context) .bodyLarge!
.textTheme .color
.bodyLarge! : Theme.of(context)
.color! .textTheme
.withOpacity(0.4)), .bodyLarge!
)), .color!
.withOpacity(0.4)),
)),
),
), ),
), Flexible(
Expanded(
child: Transform.scale(
scaleX: !_isReverseHorizontal ? 1 : -1,
child: Padding( child: Padding(
padding: const EdgeInsets.symmetric(vertical: 10), padding: const EdgeInsets.symmetric(vertical: 10),
child: Container( child: Container(
@ -1602,39 +1602,39 @@ class _MangaChapterPageGalleryState
), ),
), ),
), ),
), Padding(
Padding( padding: const EdgeInsets.all(8.0),
padding: const EdgeInsets.all(8.0), child: CircleAvatar(
child: CircleAvatar( radius: 23,
radius: 23, backgroundColor: _backgroundColor(context),
backgroundColor: _backgroundColor(context), child: IconButton(
child: IconButton( onPressed: hasNextChapter
onPressed: hasNextChapter ? () {
? () { pushReplacementMangaReaderView(
pushReplacementMangaReaderView( context: context,
context: context, chapter: _readerController.getNextChapter(),
chapter: _readerController.getNextChapter(), );
); }
} : null,
: null, icon: Transform.scale(
icon: Transform.scale( scaleX: 1,
scaleX: 1, child: Icon(
child: Icon( Icons.skip_next_rounded,
Icons.skip_next_rounded, color: hasNextChapter
color: hasNextChapter ? Theme.of(context).textTheme.bodyLarge!.color
? Theme.of(context).textTheme.bodyLarge!.color : Theme.of(context)
: Theme.of(context) .textTheme
.textTheme .bodyLarge!
.bodyLarge! .color!
.color! .withOpacity(0.4),
.withOpacity(0.4), // size: 17,
// size: 17, ),
), ),
), ),
), ),
), ),
), ],
], ),
), ),
), ),
Flexible( Flexible(