优化完善门锁日志页面

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,28 +166,32 @@ 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( ?
// timelineData.imagesUrl!, // Image.network(
// width: 260.w, // timelineData.imagesUrl!,
// height: 260.h, // width: 260.w,
// ) // height: 260.h,
Image( // )
image: const AssetImage( Image(
'images/main/icon_lockDetail_monitoringvoiceFrist.png'), image: const AssetImage(
width: 260.w, 'images/main/icon_lockDetail_monitoringvoiceFrist.png'),
height: 260.h, width: 240.w,
) height: 180.h,
else fit: BoxFit.contain,
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,
), ),
), ),
), ),