路径规划
This commit is contained in:
@@ -17,8 +17,8 @@ class HomePage extends StatelessWidget {
|
||||
final deviceState = context.watch<DevicesCubit>().state;
|
||||
final currentDevice = deviceState.selectedDevice;
|
||||
|
||||
if (currentDevice == null)
|
||||
return const Scaffold(body: Center(child: Text("加载中...")));
|
||||
//if (currentDevice == null)
|
||||
// return const Scaffold(body: Center(child: Text("加载中...")));
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: const Color(0xFFF7F7F7),
|
||||
@@ -26,7 +26,7 @@ class HomePage extends StatelessWidget {
|
||||
physics: const BouncingScrollPhysics(),
|
||||
slivers: [
|
||||
// 1. 沉浸式顶部展示区
|
||||
SliverToBoxAdapter(child: ImmersionHeader(device: currentDevice)),
|
||||
//SliverToBoxAdapter(child: ImmersionHeader(device: currentDevice)),
|
||||
|
||||
// 2. 功能网格(保持原有逻辑,但背景建议改为纯白)
|
||||
const SliverToBoxAdapter(child: QuickActionsGrid()),
|
||||
|
||||
Reference in New Issue
Block a user