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:
parent
3cbd9bad2c
commit
7844fc314d
|
|
@ -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),
|
||||
),
|
||||
],
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
// 称号名(1行・フォントサイズ縮小・overflow防止)
|
||||
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),
|
||||
|
||||
|
|
|
|||
|
|
@ -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) ...[
|
||||
|
|
|
|||
Loading…
Reference in New Issue