feat: add depth to game

This commit is contained in:
2026-06-15 19:40:25 +03:30
parent fbf068c2e6
commit 73b7c136f1
4 changed files with 117 additions and 16 deletions
+7
View File
@@ -56,12 +56,19 @@ class AppTheme {
backgroundColor: AppColors.accent,
foregroundColor: AppColors.text,
minimumSize: const Size.fromHeight(54),
elevation: 8,
shadowColor: Colors.black,
textStyle: const TextStyle(
fontFamily: fontFamily, fontSize: 18, fontWeight: FontWeight.bold),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(14),
side: const BorderSide(color: AppColors.gold, width: 1.5),
),
).copyWith(
// افکتِ فشار: کمی فرورفتن هنگام لمس برای حسِ عمق.
elevation: WidgetStateProperty.resolveWith(
(states) => states.contains(WidgetState.pressed) ? 2.0 : 8.0,
),
),
),
);