Merge branch 'master' of https://gitee.com/starlock-cn/app-starlock
This commit is contained in:
commit
b369a9db3f
@ -50,7 +50,7 @@ class _LockMonitoringPageState extends State<LockMonitoringPage> {
|
|||||||
child: Container(
|
child: Container(
|
||||||
width: 1.sw,
|
width: 1.sw,
|
||||||
height: 1.sh,
|
height: 1.sh,
|
||||||
// color: Colors.white,
|
color: Colors.transparent,
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
Image.memory(
|
Image.memory(
|
||||||
@ -58,28 +58,12 @@ class _LockMonitoringPageState extends State<LockMonitoringPage> {
|
|||||||
gaplessPlayback: true,
|
gaplessPlayback: true,
|
||||||
width: 1.sw,
|
width: 1.sw,
|
||||||
height: 1.sh,
|
height: 1.sh,
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.none,
|
||||||
|
filterQuality: FilterQuality.high,
|
||||||
errorBuilder: (context, error, stackTrace) {
|
errorBuilder: (context, error, stackTrace) {
|
||||||
return Container(color: Colors.transparent);
|
return Container(color: Colors.transparent);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
// Obx(() {
|
|
||||||
// if (state.listPhotoData.value.isEmpty ||
|
|
||||||
// state.listPhotoData.value.length < 10) {
|
|
||||||
// return Container(color: Colors.transparent);
|
|
||||||
// } else {
|
|
||||||
// return Image.memory(
|
|
||||||
// state.listPhotoData.value,
|
|
||||||
// gaplessPlayback: true,
|
|
||||||
// width: 1.sw,
|
|
||||||
// height: 1.sh,
|
|
||||||
// fit: BoxFit.cover,
|
|
||||||
// errorBuilder: (context, error, stackTrace) {
|
|
||||||
// return Container(color: Colors.transparent);
|
|
||||||
// },
|
|
||||||
// );
|
|
||||||
// }
|
|
||||||
// }),
|
|
||||||
Positioned(
|
Positioned(
|
||||||
top: ScreenUtil().statusBarHeight + 30.h,
|
top: ScreenUtil().statusBarHeight + 30.h,
|
||||||
width: 1.sw,
|
width: 1.sw,
|
||||||
@ -96,23 +80,6 @@ class _LockMonitoringPageState extends State<LockMonitoringPage> {
|
|||||||
Text("$min:$sec",
|
Text("$min:$sec",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 26.sp, color: Colors.white)),
|
fontSize: 26.sp, color: Colors.white)),
|
||||||
// SizedBox(width: 30.w),
|
|
||||||
// GestureDetector(
|
|
||||||
// onTap: () {
|
|
||||||
// Get.back();
|
|
||||||
// },
|
|
||||||
// child: Container(
|
|
||||||
// decoration: BoxDecoration(
|
|
||||||
// color: Colors.white,
|
|
||||||
// borderRadius: BorderRadius.circular(25.h)),
|
|
||||||
// padding: EdgeInsets.all(10.w),
|
|
||||||
// child: Image(
|
|
||||||
// width: 40.w,
|
|
||||||
// height: 40.w,
|
|
||||||
// image: const AssetImage("images/icon_left_black.png"),
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
// ),
|
|
||||||
]);
|
]);
|
||||||
}),
|
}),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -42,15 +42,15 @@ class UDPManage {
|
|||||||
int remoteUnlock = 0; // 是否远程开锁 1:开启 0:关闭
|
int remoteUnlock = 0; // 是否远程开锁 1:开启 0:关闭
|
||||||
|
|
||||||
void initUdp() async {
|
void initUdp() async {
|
||||||
if (host != '') {
|
// if (host != '') {
|
||||||
var listAddress = InternetAddress.lookup(host);
|
var listAddress = InternetAddress.lookup(host);
|
||||||
listAddress.then((list) {
|
listAddress.then((list) {
|
||||||
list.forEach((element) {
|
list.forEach((element) {
|
||||||
// print('Udp ----> element.address:${element.address} element.host:${element.host}');
|
// print('Udp ----> element.address:${element.address} element.host:${element.host}');
|
||||||
host = element.address;
|
host = element.address;
|
||||||
});
|
|
||||||
});
|
});
|
||||||
}
|
});
|
||||||
|
// }
|
||||||
|
|
||||||
await _initUdp();
|
await _initUdp();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user