mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 07:47:24 +00:00
format code
This commit is contained in:
@@ -268,7 +268,9 @@ class _ComicPageState extends LoadingState<ComicPage, ComicDetails>
|
|||||||
icon: const Icon(Icons.favorite_border),
|
icon: const Icon(Icons.favorite_border),
|
||||||
activeIcon: const Icon(Icons.favorite),
|
activeIcon: const Icon(Icons.favorite),
|
||||||
isActive: isLiked,
|
isActive: isLiked,
|
||||||
text: ((data!.likesCount!=null) ?(data!.likesCount!+(isLiked?1:0)) :(isLiked ? 'Liked'.tl : 'Like'.tl))
|
text: ((data!.likesCount != null)
|
||||||
|
? (data!.likesCount! + (isLiked ? 1 : 0))
|
||||||
|
: (isLiked ? 'Liked'.tl : 'Like'.tl))
|
||||||
.toString(),
|
.toString(),
|
||||||
isLoading: isLiking,
|
isLoading: isLiking,
|
||||||
onPressed: likeOrUnlike,
|
onPressed: likeOrUnlike,
|
||||||
|
@@ -147,7 +147,9 @@ class _ReaderScaffoldState extends State<_ReaderScaffold> {
|
|||||||
),
|
),
|
||||||
AnimatedPositioned(
|
AnimatedPositioned(
|
||||||
duration: const Duration(milliseconds: 180),
|
duration: const Duration(milliseconds: 180),
|
||||||
bottom: _isOpen ? 0 : -(kBottomBarHeight + MediaQuery.of(context).padding.bottom),
|
bottom: _isOpen
|
||||||
|
? 0
|
||||||
|
: -(kBottomBarHeight + MediaQuery.of(context).padding.bottom),
|
||||||
left: 0,
|
left: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
child: buildBottom(),
|
child: buildBottom(),
|
||||||
|
Reference in New Issue
Block a user