优化完善门锁日志页面

This commit is contained in:
Daisy 2024-02-27 13:52:49 +08:00
parent c9ca7228f6
commit 027f81fb61

View File

@ -116,7 +116,7 @@ class _DoorLockLogPageState extends State<DoorLockLogPage> {
// //
Widget eventDropDownWidget() { Widget eventDropDownWidget() {
return Container( return Container(
margin: EdgeInsets.only(top: 20.h, left: 30.w, bottom: 10.h), margin: EdgeInsets.only(top: 20.h, left: 30.w, bottom: 10.h, right: 20.w),
child: Row( child: Row(
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
children: [ children: [
@ -166,13 +166,17 @@ class _DoorLockLogPageState extends State<DoorLockLogPage> {
fontWeight: FontWeight.w600, fontWeight: FontWeight.w600,
), ),
), ),
SizedBox(
height: 10.h,
),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
Get.toNamed(Routers.videoLogDetailPage); Get.toNamed(Routers.videoLogDetailPage);
}, },
child: Stack( child: Stack(
children: [ children: [
if (timelineData.imagesUrl != null) timelineData.imagesUrl != null
?
// Image.network( // Image.network(
// timelineData.imagesUrl!, // timelineData.imagesUrl!,
// width: 260.w, // width: 260.w,
@ -181,13 +185,13 @@ class _DoorLockLogPageState extends State<DoorLockLogPage> {
Image( Image(
image: const AssetImage( image: const AssetImage(
'images/main/icon_lockDetail_monitoringvoiceFrist.png'), 'images/main/icon_lockDetail_monitoringvoiceFrist.png'),
width: 260.w, width: 240.w,
height: 260.h, height: 180.h,
fit: BoxFit.contain,
) )
else : Container(),
Container(),
Positioned( Positioned(
top: 200.h, top: 150.h,
left: 10.w, left: 10.w,
child: Image( child: Image(
image: const AssetImage( image: const AssetImage(
@ -199,6 +203,9 @@ class _DoorLockLogPageState extends State<DoorLockLogPage> {
], ],
), ),
), ),
SizedBox(
height: 20.h,
),
], ],
), ),
); );
@ -214,7 +221,7 @@ class _DoorLockLogPageState extends State<DoorLockLogPage> {
indicatorTheme: const IndicatorThemeData( indicatorTheme: const IndicatorThemeData(
size: 8.0, size: 8.0,
color: AppColors.greyLineColor, color: AppColors.greyLineColor,
position: 0.7, position: 0.4,
), ),
), ),
), ),