开锁成功弹出框
This commit is contained in:
parent
22bd7e01b3
commit
08b71afe96
@ -506,43 +506,45 @@ class _LockDetailPageState extends State<LockDetailPage> with TickerProviderStat
|
|||||||
height: MediaQuery.of(context).size.height,
|
height: MediaQuery.of(context).size.height,
|
||||||
width: MediaQuery.of(context).size.width,
|
width: MediaQuery.of(context).size.width,
|
||||||
color: Colors.black.withOpacity(0.5),
|
color: Colors.black.withOpacity(0.5),
|
||||||
child: Stack(
|
child: unlockSuccessWidget(),
|
||||||
alignment: Alignment.center,
|
|
||||||
children: [
|
|
||||||
Image.asset(
|
|
||||||
'images/main/unlocked_bg.png',
|
|
||||||
width: 358.w,
|
|
||||||
height: 348.h,
|
|
||||||
),
|
|
||||||
Positioned(
|
|
||||||
top: ScreenUtil().screenHeight / 2 - 10.h,
|
|
||||||
child: Column(
|
|
||||||
children: [
|
|
||||||
Text(
|
|
||||||
widget.lockListInfoItemEntity.lockAlias!,
|
|
||||||
style: TextStyle(
|
|
||||||
color: AppColors.placeholderTextColor,
|
|
||||||
fontSize: 26.sp),
|
|
||||||
),
|
|
||||||
SizedBox(
|
|
||||||
height: 10.h,
|
|
||||||
),
|
|
||||||
Text(
|
|
||||||
getCurrentFormattedTime(),
|
|
||||||
style: TextStyle(
|
|
||||||
color: AppColors.darkGrayTextColor,
|
|
||||||
fontSize: 26.sp),
|
|
||||||
)
|
|
||||||
],
|
|
||||||
))
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Widget unlockSuccessWidget() {
|
||||||
|
return Stack(
|
||||||
|
alignment: Alignment.center,
|
||||||
|
children: [
|
||||||
|
Image.asset(
|
||||||
|
'images/main/unlocked_bg.png',
|
||||||
|
width: 358.w,
|
||||||
|
height: 348.h,
|
||||||
|
),
|
||||||
|
Positioned(
|
||||||
|
top: ScreenUtil().screenHeight / 2 - 10.h,
|
||||||
|
child: Column(
|
||||||
|
children: [
|
||||||
|
Text(
|
||||||
|
widget.lockListInfoItemEntity.lockAlias!,
|
||||||
|
style: TextStyle(
|
||||||
|
color: AppColors.placeholderTextColor, fontSize: 26.sp),
|
||||||
|
),
|
||||||
|
SizedBox(
|
||||||
|
height: 10.h,
|
||||||
|
),
|
||||||
|
Text(
|
||||||
|
getCurrentFormattedTime(),
|
||||||
|
style: TextStyle(
|
||||||
|
color: AppColors.darkGrayTextColor, fontSize: 26.sp),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
))
|
||||||
|
],
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
String getCurrentFormattedTime() {
|
String getCurrentFormattedTime() {
|
||||||
// 获取当前时间
|
// 获取当前时间
|
||||||
DateTime now = DateTime.now();
|
DateTime now = DateTime.now();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user