mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Improve ui
This commit is contained in:
@@ -372,7 +372,7 @@ class _ComicPageState extends LoadingState<ComicPage, ComicDetails>
|
||||
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
|
||||
decoration: BoxDecoration(
|
||||
color: context.colorScheme.surfaceContainerLow,
|
||||
borderRadius: BorderRadius.circular(16),
|
||||
borderRadius: BorderRadius.circular(24),
|
||||
),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
@@ -395,14 +395,9 @@ class _ComicPageState extends LoadingState<ComicPage, ComicDetails>
|
||||
.getGroupByIndex(group - 1)
|
||||
.values
|
||||
.elementAt(ep - 1);
|
||||
text = "Last Reading: @epName Page @page".tlParams({
|
||||
'epName': epName,
|
||||
'page': page,
|
||||
});
|
||||
text = "${"Last Reading".tl}: $epName P$page";
|
||||
} else {
|
||||
text = "Last Reading: Page @page".tlParams({
|
||||
'page': page,
|
||||
});
|
||||
text = "${"Last Reading".tl}: P$page";
|
||||
}
|
||||
return Text(text);
|
||||
},
|
||||
|
@@ -921,10 +921,21 @@ class _SwipeChangeChapterProgressState
|
||||
return CustomPaint(
|
||||
painter: _ProgressPainter(
|
||||
value: value,
|
||||
backgroundColor: context.colorScheme.surfaceContainer,
|
||||
color: context.colorScheme.primaryContainer,
|
||||
backgroundColor: context.colorScheme.surfaceContainerLow,
|
||||
color: context.colorScheme.surfaceContainerHighest,
|
||||
),
|
||||
child: Text(msg).paddingVertical(4).paddingHorizontal(16),
|
||||
child: Row(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(
|
||||
widget.isPrev ? Icons.arrow_downward : Icons.arrow_upward,
|
||||
color: context.colorScheme.onSurface,
|
||||
size: 16,
|
||||
),
|
||||
const SizedBox(width: 4),
|
||||
Text(msg),
|
||||
],
|
||||
).paddingVertical(6).paddingHorizontal(16),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user