fix: UI tweaks — alcohol unit, title card layout, stats card

- sake_detail_specs: アルコール分チラ見せを % → 度 に統一
- level_title_card: Lv.バッジを「現在の称号」行右寄せに移動、称号名36→26px・1行制限
- activity_stats: 小カード(お気に入り・撮影日数)を横並びレイアウトに変更

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ponshu Developer 2026-04-09 19:27:25 +09:00
parent 3cbd9bad2c
commit 7844fc314d
3 changed files with 85 additions and 93 deletions

View File

@ -75,53 +75,61 @@ class ActivityStats extends ConsumerWidget {
children: [
Expanded(
child: _BentoCard(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
child: Row(
children: [
Icon(LucideIcons.heart, size: 20, color: appColors.brandAccent),
const SizedBox(height: 8),
const SizedBox(width: 10),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'$favoriteCount本',
style: TextStyle(
fontSize: 22,
fontSize: 20,
fontWeight: FontWeight.w900,
color: appColors.textPrimary,
height: 1.0,
),
),
const SizedBox(height: 4),
const SizedBox(height: 3),
Text(
'お気に入り',
style: TextStyle(fontSize: 11, color: appColors.textSecondary),
),
],
),
],
),
),
),
const SizedBox(width: 8),
Expanded(
child: _BentoCard(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
child: Row(
children: [
Icon(LucideIcons.calendar, size: 20, color: appColors.iconDefault),
const SizedBox(height: 8),
const SizedBox(width: 10),
Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
'$recordingDays日',
style: TextStyle(
fontSize: 22,
fontSize: 20,
fontWeight: FontWeight.w900,
color: appColors.textPrimary,
height: 1.0,
),
),
const SizedBox(height: 4),
const SizedBox(height: 3),
Text(
'撮影日数',
style: TextStyle(fontSize: 11, color: appColors.textSecondary),
),
],
),
],
),
),
),
],

View File

@ -49,13 +49,7 @@ class LevelTitleCard extends ConsumerWidget {
),
const SizedBox(height: 6),
],
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
// + Lv.
Row(
children: [
Text(
@ -71,47 +65,37 @@ class LevelTitleCard extends ConsumerWidget {
title: 'レベルと称号について',
customContent: _buildLevelHelpContent(context),
),
],
),
const SizedBox(height: 4),
Row(
crossAxisAlignment: CrossAxisAlignment.end,
children: [
Expanded(
child: Text(
title,
style: GoogleFonts.zenOldMincho(
fontSize: 36,
fontWeight: FontWeight.bold,
color: appColors.brandPrimary,
height: 1.1,
),
),
),
const Spacer(),
Container(
padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 6),
margin: const EdgeInsets.only(bottom: 4, left: 8), // Align baseline-ish
padding: const EdgeInsets.symmetric(horizontal: 10, vertical: 4),
decoration: BoxDecoration(
color: appColors.brandPrimary.withValues(alpha: 0.1),
borderRadius: BorderRadius.circular(12),
borderRadius: BorderRadius.circular(10),
border: Border.all(color: appColors.brandPrimary.withValues(alpha: 0.3)),
),
child: Text(
'Lv.$level',
style: TextStyle(
fontWeight: FontWeight.w900,
fontSize: 16,
fontSize: 14,
color: appColors.brandPrimary,
),
),
),
],
),
],
const SizedBox(height: 6),
// 1overflow防止
Text(
title,
style: GoogleFonts.zenOldMincho(
fontSize: 26,
fontWeight: FontWeight.bold,
color: appColors.brandPrimary,
height: 1.2,
),
),
],
maxLines: 1,
overflow: TextOverflow.ellipsis,
),
const SizedBox(height: 20),

View File

@ -188,7 +188,7 @@ class _SakeDetailSpecsState extends State<SakeDetailSpecs> {
const SizedBox(width: 10),
if (widget.sake.hiddenSpecs.alcoholContent != null)
_buildPeekChip(
'${widget.sake.hiddenSpecs.alcoholContent}%',
'${widget.sake.hiddenSpecs.alcoholContent}',
appColors,
),
if (widget.sake.hiddenSpecs.polishingRatio != null) ...[