diff --git a/lib/modules/home/controllers/home_controller.dart b/lib/modules/home/controllers/home_controller.dart index 459158c..b6b7c5a 100644 --- a/lib/modules/home/controllers/home_controller.dart +++ b/lib/modules/home/controllers/home_controller.dart @@ -9,7 +9,7 @@ class HomeController extends GetxController { // 页面列表 final List pages = [ - const Center(child: Text('首页内容')), + // const Center(child: Text('首页内容')), const ProblemPage(), // 使用 const 确保子页面不会频繁重建 const MyPage(), ]; diff --git a/lib/modules/home/views/home_page.dart b/lib/modules/home/views/home_page.dart index 545362a..4a8279b 100644 --- a/lib/modules/home/views/home_page.dart +++ b/lib/modules/home/views/home_page.dart @@ -14,11 +14,11 @@ class HomePage extends GetView { selectedIndex: controller.selectedIndex.value, onDestinationSelected: controller.changeIndex, // 回调控制状态更新 destinations: const [ - NavigationDestination( - icon: Icon(Icons.home_outlined), - selectedIcon: Icon(Icons.home), - label: '首页', - ), + // NavigationDestination( + // icon: Icon(Icons.home_outlined), + // selectedIcon: Icon(Icons.home), + // label: '首页', + // ), NavigationDestination( icon: Icon(Icons.description_outlined), selectedIcon: Icon(Icons.description), diff --git a/lib/modules/problem/views/widgets/problem_card.dart b/lib/modules/problem/views/widgets/problem_card.dart index d8d24b5..96e3e46 100644 --- a/lib/modules/problem/views/widgets/problem_card.dart +++ b/lib/modules/problem/views/widgets/problem_card.dart @@ -74,12 +74,13 @@ class ProblemCard extends StatelessWidget { SizedBox(width: 16.w), Icon(Icons.access_time, color: Colors.grey, size: 16.h), SizedBox(width: 8.w), - SizedBox( - width: 100.w, + Expanded( child: Text( - DateFormat('yyyy-MM-dd HH:mm').format(problem.creationTime), + DateFormat( + 'yyyy-MM-dd HH:mm:ss', + ).format(problem.creationTime), style: TextStyle(fontSize: 12.sp), - overflow: TextOverflow.ellipsis, + // overflow: TextOverflow.ellipsis, ), ), ],