feat: implement multi-step mood logging wizard

Adds sleep/energy/positivity/self-worth tracking columns to the database
(schema v2 migration), a new 5-option StepScale widget, per-answer chips
at the top of the screen, a 2×2 activity grid chip, and a full step-by-step
wizard flow: mood → sleep (first entry today only) → energy → positivity →
self-worth → activities → review+save.
This commit is contained in:
2026-04-26 12:14:45 +10:00
parent 59597c7a4f
commit 6f3fb74e7e
10 changed files with 1142 additions and 129 deletions
@@ -0,0 +1,48 @@
import 'package:flutter/material.dart';
/// A single 60 px circular answer chip showing either an emoji or short text.
class AnswerChip extends StatelessWidget {
final String label;
final Color backgroundColor;
final VoidCallback? onTap;
const AnswerChip({
super.key,
required this.label,
required this.backgroundColor,
this.onTap,
});
@override
Widget build(BuildContext context) {
return GestureDetector(
onTap: onTap,
child: AnimatedContainer(
duration: const Duration(milliseconds: 250),
curve: Curves.easeOut,
width: 60,
height: 60,
decoration: BoxDecoration(
color: backgroundColor,
shape: BoxShape.circle,
boxShadow: onTap != null
? [
BoxShadow(
color: backgroundColor.withValues(alpha: 0.4),
blurRadius: 8,
offset: const Offset(0, 2),
)
]
: null,
),
child: Center(
child: Text(
label,
style: const TextStyle(fontSize: 22),
textAlign: TextAlign.center,
),
),
),
);
}
}