design+client: 抽 .view-body/PageBody 统一桌面内容页宽度(600/wide 840)——stats·contact 补约束,settings·contact 560→600,九页收口
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01P9G7E3wmAYL9KeYCVZVsqu
This commit is contained in:
@@ -11,6 +11,7 @@ import '../state/account_providers.dart';
|
||||
import '../state/app_providers.dart';
|
||||
import '../state/auth_provider.dart';
|
||||
import '../widgets/app_top_bar.dart';
|
||||
import '../widgets/page_body.dart';
|
||||
import '../widgets/pangolin_icons.dart';
|
||||
import '../widgets/period_card.dart';
|
||||
import '../widgets/usage_line_chart.dart';
|
||||
@@ -69,7 +70,7 @@ class StatsPage extends ConsumerWidget {
|
||||
ref.invalidate(deviceUsageProvider(30));
|
||||
await ref.read(meProvider.notifier).refresh();
|
||||
},
|
||||
child: ListView(
|
||||
child: PageBody(child: ListView(
|
||||
padding: EdgeInsets.fromLTRB(isWide ? 32 : 20, isWide ? 8 : 4, isWide ? 32 : 20, 24),
|
||||
children: [
|
||||
// 顶行:标题(宽屏) + 设备下拉(右上角)
|
||||
@@ -115,7 +116,7 @@ class StatsPage extends ConsumerWidget {
|
||||
]),
|
||||
),
|
||||
],
|
||||
),
|
||||
)),
|
||||
);
|
||||
|
||||
if (isWide) return body;
|
||||
|
||||
Reference in New Issue
Block a user