This commit is contained in:
ytc1012
2025-11-27 18:30:49 +08:00
parent 15252dfd88
commit ef44d11c32
4 changed files with 215 additions and 190 deletions

View File

@@ -278,11 +278,11 @@ class _HistoryScreenState extends State<HistoryScreen> {
);
},
child: Container(
margin: const EdgeInsets.only(bottom: 12),
color: Colors.black.withValues(alpha: 0.05),
margin: const EdgeInsets.only(bottom: 16),
padding: const EdgeInsets.all(20),
decoration: BoxDecoration(
color: AppColors.white,
borderRadius: BorderRadius.circular(12),
borderRadius: BorderRadius.circular(16),
border: Border.all(color: AppColors.divider, width: 1),
boxShadow: [
BoxShadow(
@@ -299,13 +299,13 @@ class _HistoryScreenState extends State<HistoryScreen> {
timeStr,
style: const TextStyle(
fontFamily: 'Nunito',
fontSize: 16,
fontWeight: FontWeight.w600,
fontSize: 18,
fontWeight: FontWeight.w700,
color: AppColors.textPrimary,
),
),
const SizedBox(width: 16),
const SizedBox(width: 20),
// Duration
Expanded(
@@ -317,11 +317,16 @@ class _HistoryScreenState extends State<HistoryScreen> {
session.actualMinutes,
l10n.minutes(session.actualMinutes),
),
style: AppTextStyles.bodyText,
style: const TextStyle(
fontFamily: 'Nunito',
fontSize: 18,
fontWeight: FontWeight.w600,
color: AppColors.textPrimary,
),
),
if (session.distractionCount > 0)
Padding(
padding: const EdgeInsets.only(top: 4),
padding: const EdgeInsets.only(top: 6),
child: Text(
l10n.distractionsCount(
session.distractionCount,
@@ -329,7 +334,7 @@ class _HistoryScreenState extends State<HistoryScreen> {
),
style: const TextStyle(
fontFamily: 'Nunito',
fontSize: 14,
fontSize: 16,
fontWeight: FontWeight.w400,
color: AppColors.textSecondary,
),
@@ -341,18 +346,18 @@ class _HistoryScreenState extends State<HistoryScreen> {
// Status badge
Container(
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
decoration: BoxDecoration(
color: session.completed
? AppColors.success.withValues(alpha: 0.1)
: AppColors.distractionButton,
borderRadius: BorderRadius.circular(8),
borderRadius: BorderRadius.circular(12),
),
child: Text(
'$statusEmoji $statusText',
style: TextStyle(
fontFamily: 'Nunito',
fontSize: 12,
fontSize: 14,
fontWeight: FontWeight.w600,
color: session.completed
? AppColors.success
@@ -362,10 +367,10 @@ class _HistoryScreenState extends State<HistoryScreen> {
),
// Arrow indicator
const SizedBox(width: 8),
const SizedBox(width: 12),
const Icon(
Icons.arrow_forward_ios,
size: 12,
size: 16,
color: AppColors.textSecondary,
),
],