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
9c940270
Commit
9c940270
authored
Jun 26, 2026
by
akari
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 设置页面更新
parent
6d5b01b7
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
31 additions
and
54 deletions
+31
-54
btn_1.png
lib/assets/settings/btn_1.png
+0
-0
btn_2.png
lib/assets/settings/btn_2.png
+0
-0
icon_user1.png
lib/assets/settings/icon_user1.png
+0
-0
icon_user2.png
lib/assets/settings/icon_user2.png
+0
-0
settings_about_panel.dart
lib/views/settings/about/widgets/settings_about_panel.dart
+4
-2
factory_settings_panel.dart
...ings/factory_settings/widgets/factory_settings_panel.dart
+5
-19
remote_control_panel.dart
...settings/remote_control/widgets/remote_control_panel.dart
+16
-10
software_update_panel.dart
...ttings/software_update/widgets/software_update_panel.dart
+3
-20
settings_panel_frame.dart
lib/views/settings/widgets/settings_panel_frame.dart
+3
-3
No files found.
lib/assets/settings/btn_1.png
0 → 100644
View file @
9c940270
289 KB
lib/assets/settings/btn_2.png
0 → 100644
View file @
9c940270
222 KB
lib/assets/settings/icon_user1.png
0 → 100644
View file @
9c940270
14.7 KB
lib/assets/settings/icon_user2.png
0 → 100644
View file @
9c940270
15.4 KB
lib/views/settings/about/widgets/settings_about_panel.dart
View file @
9c940270
...
...
@@ -327,7 +327,8 @@ class _UnitButton extends StatelessWidget {
child:
Container
(
width:
110
.
w
,
height:
52
.
h
,
decoration:
settingsButtonDecoration
(
active:
active
),
decoration:
settingsButtonDecoration
(
active:
active
,
asset:
'lib/assets/settings/btn_2.png'
),
alignment:
Alignment
.
center
,
child:
Text
(
text
,
...
...
@@ -396,7 +397,8 @@ class _ClearButton extends StatelessWidget {
return
Container
(
width:
110
.
w
,
height:
52
.
h
,
decoration:
settingsButtonDecoration
(),
decoration:
settingsButtonDecoration
(
asset:
'lib/assets/settings/btn_2.png'
),
alignment:
Alignment
.
center
,
child:
Text
(
'清理'
,
...
...
lib/views/settings/factory_settings/widgets/factory_settings_panel.dart
View file @
9c940270
...
...
@@ -289,7 +289,7 @@ class _WideFactoryButton extends StatelessWidget {
Widget
build
(
BuildContext
context
)
{
return
SizedBox
(
width:
360
.
w
,
height:
7
0
.
h
,
height:
11
0
.
h
,
child:
_FactoryButton
(
text:
text
),
);
}
...
...
@@ -310,19 +310,11 @@ class _FactoryButton extends StatelessWidget {
return
GestureDetector
(
onTap:
onPressed
,
child:
Container
(
height:
7
0
.
h
,
height:
11
0
.
h
,
padding:
EdgeInsets
.
symmetric
(
horizontal:
28
.
w
),
decoration:
settingsButtonDecoration
(
active:
isEnabled
),
child:
Row
(
children:
[
Text
(
'《'
,
style:
TextStyle
(
color:
const
Color
(
0xFF67C9F5
).
withValues
(
alpha:
isEnabled
?
0.72
:
0.3
),
fontSize:
25
.
sp
,
fontWeight:
FontWeight
.
w700
,
),
),
Expanded
(
child:
Text
(
text
,
...
...
@@ -330,20 +322,14 @@ class _FactoryButton extends StatelessWidget {
overflow:
TextOverflow
.
ellipsis
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
color:
isEnabled
?
Colors
.
white
:
Colors
.
white
.
withValues
(
alpha:
0.5
),
color:
isEnabled
?
Colors
.
white
:
Colors
.
white
.
withValues
(
alpha:
0.5
),
fontSize:
25
.
sp
,
fontWeight:
FontWeight
.
w800
,
),
),
),
Text
(
'》'
,
style:
TextStyle
(
color:
const
Color
(
0xFF67C9F5
).
withValues
(
alpha:
isEnabled
?
0.72
:
0.3
),
fontSize:
25
.
sp
,
fontWeight:
FontWeight
.
w700
,
),
),
],
),
),
...
...
lib/views/settings/remote_control/widgets/remote_control_panel.dart
View file @
9c940270
...
...
@@ -33,12 +33,14 @@ class RemoteControlPanel extends StatelessWidget {
title:
'管理员'
,
description:
'可以设置更改设备各项参数,启动TSAAS等功能。'
,
accounts:
state
.
adminAccounts
,
icon:
'lib/assets/settings/icon_user2.png'
,
),
SizedBox
(
height:
32
.
h
),
_AccountSection
(
title:
'监测员'
,
description:
'只能查看设备各项参数,记录诊疗状态等权限。'
,
accounts:
state
.
monitorAccounts
,
icon:
'lib/assets/settings/icon_user1.png'
,
),
],
),
...
...
@@ -140,11 +142,13 @@ class _AccountSection extends StatelessWidget {
required
this
.
title
,
required
this
.
description
,
required
this
.
accounts
,
required
this
.
icon
,
});
final
String
title
;
final
String
description
;
final
List
<
RemoteControlAccount
>
accounts
;
final
String
icon
;
@override
Widget
build
(
BuildContext
context
)
{
...
...
@@ -152,11 +156,11 @@ class _AccountSection extends StatelessWidget {
for
(
final
account
in
accounts
)
_AccountActionCard
(
text:
account
.
phone
,
icon:
Icons
.
manage_accounts_outlined
,
icon:
icon
,
),
const
_AccountActionCard
(
_AccountActionCard
(
text:
'新增账户'
,
icon:
Icons
.
person_add_alt_1_outlined
,
icon:
icon
,
),
];
...
...
@@ -210,21 +214,23 @@ class _AccountActionCard extends StatelessWidget {
});
final
String
text
;
final
IconData
icon
;
final
String
icon
;
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
width:
2
35
.
w
,
height:
92
.
h
,
width:
2
81
.
w
,
height:
100
.
h
,
padding:
EdgeInsets
.
symmetric
(
horizontal:
22
.
w
),
decoration:
settingsButtonDecoration
(),
decoration:
settingsButtonDecoration
(
asset:
'lib/assets/settings/btn_2.png'
),
child:
Row
(
children:
[
I
con
(
I
mage
.
asset
(
icon
,
color:
const
Color
(
0xFF78C8F5
).
withValues
(
alpha:
0.78
),
size:
42
.
w
,
width:
22
,
height:
22
,
fit:
BoxFit
.
contain
,
),
SizedBox
(
width:
16
.
w
),
Expanded
(
...
...
lib/views/settings/software_update/widgets/software_update_panel.dart
View file @
9c940270
...
...
@@ -100,7 +100,8 @@ class _CheckUpdateButton extends StatelessWidget {
width:
245
.
w
,
height:
104
.
h
,
padding:
EdgeInsets
.
symmetric
(
horizontal:
24
.
w
),
decoration:
settingsButtonDecoration
(
active:
true
),
decoration:
settingsButtonDecoration
(
active:
true
,
asset:
"lib/assets/settings/btn_2.png"
),
child:
Row
(
children:
[
Container
(
...
...
@@ -245,20 +246,11 @@ class _UpdateActionButton extends StatelessWidget {
info
.
canUpdate
?
Colors
.
white
:
Colors
.
white
.
withValues
(
alpha:
0.42
);
return
Container
(
width:
345
.
w
,
height:
7
0
.
h
,
height:
11
0
.
h
,
padding:
EdgeInsets
.
symmetric
(
horizontal:
28
.
w
),
decoration:
settingsButtonDecoration
(
active:
info
.
canUpdate
),
child:
Row
(
children:
[
Text
(
'《《'
,
style:
TextStyle
(
color:
const
Color
(
0xFF67C9F5
)
.
withValues
(
alpha:
info
.
canUpdate
?
0.72
:
0.34
),
fontSize:
26
.
sp
,
fontWeight:
FontWeight
.
w700
,
),
),
Expanded
(
child:
Text
(
info
.
actionText
,
...
...
@@ -272,15 +264,6 @@ class _UpdateActionButton extends StatelessWidget {
),
),
),
Text
(
'》》'
,
style:
TextStyle
(
color:
const
Color
(
0xFF67C9F5
)
.
withValues
(
alpha:
info
.
canUpdate
?
0.72
:
0.34
),
fontSize:
26
.
sp
,
fontWeight:
FontWeight
.
w700
,
),
),
],
),
);
...
...
lib/views/settings/widgets/settings_panel_frame.dart
View file @
9c940270
...
...
@@ -7,7 +7,7 @@ const String settingsAssetPanelMain =
'lib/assets/settings/frame_panel_3900x2000.png'
;
const
String
settingsAssetDDL
=
'lib/assets/settings/ddl.png'
;
const
String
settingsAssetButton
=
'lib/assets/settings/
frame_333x150
.png'
;
const
String
settingsAssetButton
=
'lib/assets/settings/
btn_1
.png'
;
class
SettingsPanelFrame
extends
StatelessWidget
{
const
SettingsPanelFrame
({
...
...
@@ -50,8 +50,8 @@ BoxDecoration settingsButtonDecoration({
boxShadow:
active
?
[
BoxShadow
(
color:
const
Color
(
0xFF45CFFF
).
withValues
(
alpha:
0.
3
),
blurRadius:
18
.
r
,
color:
const
Color
(
0xFF45CFFF
).
withValues
(
alpha:
0.
2
),
blurRadius:
40
.
r
,
spreadRadius:
1
.
r
,
),
]
...
...
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