Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
laki_icu_app
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张宏
laki_icu_app
Commits
a74d7559
Commit
a74d7559
authored
Jun 27, 2026
by
张宏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
22222222
parent
d1e20f66
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
60 additions
and
47 deletions
+60
-47
CrashHandler.java
.../main/java/com/qialg/laki_icu_app/utils/CrashHandler.java
+0
-4
WatchDogManager.java
...in/java/com/qialg/laki_icu_app/utils/WatchDogManager.java
+2
-2
monitoring_metric_card.dart
...iews/monitoring/index/widgets/monitoring_metric_card.dart
+26
-9
monitoring_pet_info_card.dart
...ws/monitoring/index/widgets/monitoring_pet_info_card.dart
+32
-32
No files found.
android/app/src/main/java/com/qialg/laki_icu_app/utils/CrashHandler.java
View file @
a74d7559
...
...
@@ -28,10 +28,6 @@ public class CrashHandler implements UncaughtExceptionHandler {
@Override
public
void
uncaughtException
(
Thread
arg0
,
Throwable
arg1
)
{
// TODO: 崩溃日志记录 — 后期确定方案后补充
// 可选方向:
// A. 写本地文件 (参考 qisuanfa: context.getExternalFilesDir + yyyy-MM-dd/errorLog.log)
// B. 接入第三方平台 (Bugly / Sentry / Firebase Crashlytics)
// C. 通过 Flutter MethodChannel 回传 Dart 层统一处理
// 待确定后再实现。
// TODO: 崩溃上报 — 同上,后期确定上报通道后补充
...
...
android/app/src/main/java/com/qialg/laki_icu_app/utils/WatchDogManager.java
View file @
a74d7559
...
...
@@ -16,8 +16,8 @@ import com.qialg.laki_icu_app.MainActivity;
*/
public
class
WatchDogManager
{
private
static
final
String
TAG
=
"WatchDogManager"
;
private
static
final
int
TIMEOUT
=
10000
;
// 1
0秒没响应判定为卡死
private
static
final
int
CHECK_INTERVAL
=
3
000
;
// 每3秒检查一次
private
static
final
int
TIMEOUT
=
30000
;
// 3
0秒没响应判定为卡死
private
static
final
int
CHECK_INTERVAL
=
5
000
;
// 每3秒检查一次
private
static
volatile
long
lastResponseTime
;
private
static
Handler
mainHandler
;
...
...
lib/views/monitoring/index/widgets/monitoring_metric_card.dart
View file @
a74d7559
...
...
@@ -61,16 +61,33 @@ class MonitoringMetricCard extends StatelessWidget {
flex:
2
,
child:
Align
(
alignment:
Alignment
.
topLeft
,
child:
FlutterSwitch
(
width:
60
.
w
,
height:
30
.
h
,
value:
switchValue
,
onToggle:
onSwitchToggle
??
(
_
)
{},
activeColor:
const
Color
(
0xFF75C1DD
),
inactiveColor:
const
Color
(
0xFF0A1B34
),
toggleSize:
22
.
w
,
padding:
4
.
w
,
child:
displayLabel
==
'CO₂浓度'
?
Container
(
child:
Text
(
"PPM"
,
style:
TextStyle
(
color:
Color
(
0xFF66C0E8
),
fontSize:
24
.
sp
,
fontWeight:
FontWeight
.
bold
),),
)
:
Container
(
width:
93
.
w
,
height:
41
.
h
,
alignment:
AlignmentDirectional
.
center
,
decoration:
BoxDecoration
(
color:
Color
(
0xFF0A1B34
),
border:
BoxBorder
.
all
(
width:
1
.
w
,
color:
Color
(
0xFF5A8BB0
),
),
borderRadius:
BorderRadius
.
circular
(
20
)
),
child:
Text
(
"ON"
,
style:
TextStyle
(
color:
Color
(
0xFF3C6082
),
fontSize:
24
.
sp
,
fontWeight:
FontWeight
.
bold
),),
)
// FlutterSwitch(
// width: 60.w,
// height: 30.h,
// value: switchValue,
// onToggle: onSwitchToggle ?? (_) {},
// activeColor: const Color(0xFF75C1DD),
// inactiveColor: const Color(0xFF0A1B34),
// toggleSize: 22.w,
// padding: 4.w,
// ),
),
),
],
...
...
lib/views/monitoring/index/widgets/monitoring_pet_info_card.dart
View file @
a74d7559
...
...
@@ -122,38 +122,38 @@ class MonitoringPetInfoCard extends StatelessWidget {
),
SizedBox
(
height:
26
.
h
),
// 绑定宠物按钮
GestureDetector
(
onTap:
onBindPet
,
child:
Container
(
width:
double
.
infinity
,
height:
140
.
h
,
decoration:
const
BoxDecoration
(
image:
DecorationImage
(
image:
AssetImage
(
'lib/assets/monitoring/title_bg_spacewalk.png'
),
fit:
BoxFit
.
fill
,
),
),
child:
Center
(
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
[
SizedBox
(
width:
24
.
w
),
Text
(
'绑定宠物'
,
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
32
.
sp
,
fontWeight:
FontWeight
.
w700
,
letterSpacing:
4
.
w
,
),
),
SizedBox
(
width:
24
.
w
),
],
),
),
),
),
//
GestureDetector(
//
onTap: onBindPet,
//
child: Container(
//
width: double.infinity,
//
height: 140.h,
//
decoration: const BoxDecoration(
//
image: DecorationImage(
//
image:
//
AssetImage('lib/assets/monitoring/title_bg_spacewalk.png'),
//
fit: BoxFit.fill,
//
),
//
),
//
child: Center(
//
child: Row(
//
mainAxisAlignment: MainAxisAlignment.center,
//
children: [
//
SizedBox(width: 24.w),
//
Text(
//
'绑定宠物',
//
style: TextStyle(
//
color: Colors.white,
//
fontSize: 32.sp,
//
fontWeight: FontWeight.w700,
//
letterSpacing: 4.w,
//
),
//
),
//
SizedBox(width: 24.w),
//
],
//
),
//
),
//
),
//
),
],
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment