Skip to content

Commit ce7a877

Browse files
committed
Update subscriptions.dart
1 parent b0abb7f commit ce7a877

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

lib/view/subscriptions.dart

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ class _SubscriptionViewState extends State<SubscriptionView> with AutomaticKeepA
398398
style: TextStyle(
399399
fontSize: 12,
400400
color: Theme.of(context).colorScheme.onPrimary
401-
401+
402402
),
403403
),
404404
),
@@ -477,12 +477,16 @@ class _SubscriptionViewState extends State<SubscriptionView> with AutomaticKeepA
477477

478478
const SizedBox(height: 8),
479479

480-
// 4. 时间
481480
Text(
482-
'上次更新: ${formatTimeAgo(sub['update'] as String)} | '
483-
'${(sub['expire'] as int) == 0
481+
(sub['expire'] as int) == 0
484482
? '到期时间: ∞'
485-
: '到期时间: ${DateTime.fromMillisecondsSinceEpoch((sub['expire'] as int) * 1000).toString().split(" ")[0]}'}',
483+
: '到期时间: ${DateTime.fromMillisecondsSinceEpoch((sub['expire'] as int) * 1000).toString().split(" ")[0]}',
484+
style: Theme.of(context).textTheme.bodySmall,
485+
overflow: TextOverflow.ellipsis,
486+
),
487+
const SizedBox(height: 8),
488+
Text(
489+
'上次更新: ${formatTimeAgo(sub['update'] as String)}',
486490
style: Theme.of(context).textTheme.bodySmall,
487491
overflow: TextOverflow.ellipsis,
488492
),

0 commit comments

Comments
 (0)