2026.4.2 进港须知

master
xufei 2026-04-02 10:35:41 +08:00
parent 317a0ef359
commit 61121e4f8d
5 changed files with 112 additions and 17 deletions

View File

@ -347,10 +347,25 @@ class _DoorareaCarAddPageState extends State<DoorareaCarAddPage> {
activeColor: Colors.blue,
checkColor: Colors.white,
side: const BorderSide(color: Colors.grey),
onChanged: (value) {
setState(() {
// _agreed = value ?? false;
});
onChanged: (value) async {
final path = await Navigator.push(
context,
MaterialPageRoute(builder: (context) => SignInstructionsWebview(
name: "安全进港须知",
url:
'http://47.92.102.56:7811/file/xieyi/zsyhxy.htm',
)),
);
await NativeOrientation.setPortrait();
if (path != null) {
setState(() {
setState(() {
_agreed = true;
signImages = [];
signImages.add(path);
});
});
}
},
),
Flexible(

View File

@ -280,10 +280,25 @@ class _FirstlevelCarAddPageState extends State<FirstlevelCarAddPage> {
activeColor: Colors.blue,
checkColor: Colors.white,
side: const BorderSide(color: Colors.grey),
onChanged: (value) {
setState(() {
// _agreed = value ?? false;
});
onChanged: (value) async {
final path = await Navigator.push(
context,
MaterialPageRoute(builder: (context) => SignInstructionsWebview(
name: "安全进港须知",
url:
'http://47.92.102.56:7811/file/xieyi/zsyhxy.htm',
)),
);
await NativeOrientation.setPortrait();
if (path != null) {
setState(() {
setState(() {
_agreed = true;
signImages = [];
signImages.add(path);
});
});
}
},
),
Flexible(

View File

@ -274,10 +274,25 @@ class _DoorareaPersonApplyPageState extends State<DoorareaPersonApplyPage> {
activeColor: Colors.blue,
checkColor: Colors.white,
side: const BorderSide(color: Colors.grey),
onChanged: (value) {
setState(() {
// _agreed = value ?? false;
});
onChanged: (value) async {
final path = await Navigator.push(
context,
MaterialPageRoute(builder: (context) => SignInstructionsWebview(
name: "安全进港须知",
url:
'http://47.92.102.56:7811/file/xieyi/zsyhxy.htm',
)),
);
await NativeOrientation.setPortrait();
if (path != null) {
setState(() {
setState(() {
_agreed = true;
signImages = [];
signImages.add(path);
});
});
}
},
),
Flexible(

View File

@ -176,10 +176,25 @@ class _FirstlevelPersonAddPageState extends State<FirstlevelPersonAddPage> {
activeColor: Colors.blue,
checkColor: Colors.white,
side: const BorderSide(color: Colors.grey),
onChanged: (value) {
setState(() {
// _agreed = value ?? false;
});
onChanged: (value) async {
final path = await Navigator.push(
context,
MaterialPageRoute(builder: (context) => SignInstructionsWebview(
name: "安全进港须知",
url:
'http://47.92.102.56:7811/file/xieyi/zsyhxy.htm',
)),
);
await NativeOrientation.setPortrait();
if (path != null) {
setState(() {
setState(() {
_agreed = true;
signImages = [];
signImages.add(path);
});
});
}
},
),
Flexible(

View File

@ -36,6 +36,24 @@ class _SignInstructionsWebviewState extends State<SignInstructionsWebview> {
List<String> signImages = [];
final String noticeContent = '''
访
1.访访
2."禁止入内""危险区域"线
3.
4.
5.穿
6.线
''';
@override
void initState() {
@ -68,7 +86,24 @@ class _SignInstructionsWebviewState extends State<SignInstructionsWebview> {
Navigator.of(context).pop();
}
},),
Expanded( child: WebViewWidget(controller: _controller),),
Expanded(
child:SingleChildScrollView(
padding: const EdgeInsets.all(20),
child: Text(
noticeContent,
style: const TextStyle(
fontSize: 14,
height: 1.6,
color: Colors.black87,
),
),
),
),
// Expanded( child: WebViewWidget(controller: _controller),),
// ValueListenableBuilder<bool>(
// valueListenable: isLoading,
// builder: (context, loading, _) {