mirror of
https://github.com/kodjodevf/mangayomi.git
synced 2026-03-11 17:25:32 +00:00
refactor
This commit is contained in:
parent
1f21a75762
commit
beedb6e3b9
1 changed files with 11 additions and 12 deletions
|
|
@ -38,6 +38,17 @@ class ChapterListTileWidget extends ConsumerWidget {
|
|||
onLongPress: () => _handleInteraction(ref),
|
||||
onSecondaryTap: () => _handleInteraction(ref),
|
||||
child: ListTile(
|
||||
minLeadingWidth: 3,
|
||||
leading: Container(
|
||||
width: 3,
|
||||
height: 25,
|
||||
decoration: BoxDecoration(
|
||||
color: chapter.isRead!
|
||||
? Colors.grey.withValues(alpha: 0.3)
|
||||
: context.primaryColor,
|
||||
borderRadius: BorderRadius.circular(5),
|
||||
),
|
||||
),
|
||||
tileColor: (chapter.isFiller ?? false)
|
||||
? context.primaryColor.withValues(alpha: 0.15)
|
||||
: null,
|
||||
|
|
@ -53,17 +64,6 @@ class ChapterListTileWidget extends ConsumerWidget {
|
|||
title: Row(
|
||||
crossAxisAlignment: CrossAxisAlignment.end,
|
||||
children: [
|
||||
Container(
|
||||
width: 4,
|
||||
height: 4,
|
||||
decoration: BoxDecoration(
|
||||
color: chapter.isRead!
|
||||
? Colors.grey.withValues(alpha: 0.3)
|
||||
: context.primaryColor,
|
||||
borderRadius: BorderRadius.circular(2),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 12),
|
||||
if (chapter.thumbnailUrl != null)
|
||||
_thumbnailPreview(context, chapter.thumbnailUrl),
|
||||
chapter.isBookmarked!
|
||||
|
|
@ -88,7 +88,6 @@ class ChapterListTileWidget extends ConsumerWidget {
|
|||
),
|
||||
subtitle: Row(
|
||||
children: [
|
||||
const SizedBox(width: 16),
|
||||
if (chapter.isFiller ?? false)
|
||||
Row(
|
||||
children: [
|
||||
|
|
|
|||
Loading…
Reference in a new issue