|
...
|
...
|
@@ -45,6 +45,7 @@ class NoHealthDataPage extends StatelessWidget { |
|
|
|
const _PageHeading(),
|
|
|
|
const SizedBox(height: 24),
|
|
|
|
const _InfoCard(
|
|
|
|
path: 'assets/images/common/ic_apple_watch.png',
|
|
|
|
title: '错误1:Apple Watch 数据不可用',
|
|
|
|
body:
|
|
|
|
'看起来你在过去 12 个月内没有使用 Apple Watch。如果你刚开始使用 Apple Watch 并已启用所有数据权限,这条信息可能仍会出现。请继续佩戴 Apple Watch 以允许数据采集,或在首页手动添加 HRV 数据。',
|
|
...
|
...
|
@@ -185,10 +186,12 @@ class _InfoCard extends StatelessWidget { |
|
|
|
const _InfoCard({
|
|
|
|
required this.title,
|
|
|
|
required this.body,
|
|
|
|
required this.path,
|
|
|
|
});
|
|
|
|
|
|
|
|
final String title;
|
|
|
|
final String body;
|
|
|
|
final String path;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
...
|
...
|
@@ -196,7 +199,13 @@ class _InfoCard extends StatelessWidget { |
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
const Center(child: _IconPlaceholder()),
|
|
|
|
Center(
|
|
|
|
child: Image(
|
|
|
|
image: AssetImage(path),
|
|
|
|
width: 56,
|
|
|
|
height: 56,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
const SizedBox(height: 10),
|
|
|
|
Text(
|
|
|
|
title,
|
|
...
|
...
|
@@ -235,7 +244,13 @@ class _AuthorizationCard extends StatelessWidget { |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
children: [
|
|
|
|
Center(child: _IconPlaceholder()),
|
|
|
|
Center(
|
|
|
|
child: Image(
|
|
|
|
image: AssetImage('assets/images/common/ic_apple_health.png'),
|
|
|
|
width: 56,
|
|
|
|
height: 56,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(height: 10),
|
|
|
|
Text(
|
|
|
|
'错误 2:健康数据访问未授权',
|
|
...
|
...
|
@@ -299,7 +314,13 @@ class _SystemIssueCard extends StatelessWidget { |
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Center(child: _IconPlaceholder()),
|
|
|
|
Center(
|
|
|
|
child: Image(
|
|
|
|
image: AssetImage('assets/images/common/ic_apple_health.png'),
|
|
|
|
width: 56,
|
|
|
|
height: 56,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
SizedBox(height: 10),
|
|
|
|
Text(
|
|
|
|
'错误 3:系统问题',
|
...
|
...
|
|