From 7fd2270570811c0d29f0d5d87d11bfc4612e0743 Mon Sep 17 00:00:00 2001
From: 905086 <k2049@qq.com>
Date: Sat, 07 Nov 2026 20:30:06 +0800
Subject: [PATCH] feat: 实现用户密码找回功能及相关配套功能

---
 fluttergamebox/lib/pages/library_page.dart |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/fluttergamebox/lib/pages/library_page.dart b/fluttergamebox/lib/pages/library_page.dart
index 706f3c8..d1d520c 100644
--- a/fluttergamebox/lib/pages/library_page.dart
+++ b/fluttergamebox/lib/pages/library_page.dart
@@ -389,10 +389,13 @@
 
   /// 安装(未安装时):选择路径后下载并安装
   Future<void> _install() async {
-    // 选择下载安装路径
+    // 选择下载安装路径(并校验磁盘剩余空间)
     final ok = await showDialog<bool>(
       context: context,
-      builder: (context) => DownloadPathDialog(gameTitle: widget.game.title),
+      builder: (context) => DownloadPathDialog(
+        gameTitle: widget.game.title,
+        requiredGb: widget.game.requiredDiskGb,
+      ),
     );
     if (ok != true) return;
     try {
@@ -760,7 +763,7 @@
                           color: Colors.black.withOpacity(0.6),
                           borderRadius: BorderRadius.circular(3),
                         ),
-                        child: Text(widget.game.size,
+                        child: Text(sizeWithGb(widget.game.size),
                             style: const TextStyle(
                                 color: Colors.white, fontSize: 11)),
                       ),

--
Gitblit v1.10.0