新增添加卡图片及布局优化
This commit is contained in:
parent
56079829c3
commit
0f704420cf
BIN
star_lock/images/main/icon_addCard.png
Normal file
BIN
star_lock/images/main/icon_addCard.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 44 KiB |
@ -24,7 +24,8 @@ class _AddICCardPageState extends State<AddICCardPage> {
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: AppColors.mainBackgroundColor,
|
backgroundColor: AppColors.mainBackgroundColor,
|
||||||
appBar: TitleAppBar(
|
appBar: TitleAppBar(
|
||||||
barTitle: "${TranslationLoader.lanKeys!.add!.tr}${TranslationLoader.lanKeys!.card!.tr}",
|
barTitle:
|
||||||
|
"${TranslationLoader.lanKeys!.add!.tr}${TranslationLoader.lanKeys!.card!.tr}",
|
||||||
haveBack: true,
|
haveBack: true,
|
||||||
backgroundColor: AppColors.mainColor,
|
backgroundColor: AppColors.mainColor,
|
||||||
),
|
),
|
||||||
@ -32,22 +33,35 @@ class _AddICCardPageState extends State<AddICCardPage> {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
// mainAxisAlignment: MainAxisAlignment.center,
|
// mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
SizedBox(height: 420.h),
|
SizedBox(height: 60.h),
|
||||||
CupertinoActivityIndicator(radius: 25.h,),
|
Image.asset(
|
||||||
|
'images/main/icon_addCard.png',
|
||||||
|
width: 234.w,
|
||||||
|
height: 211.h,
|
||||||
|
fit: BoxFit.cover,
|
||||||
|
),
|
||||||
|
SizedBox(height: 90.h),
|
||||||
|
CupertinoActivityIndicator(
|
||||||
|
radius: 25.h,
|
||||||
|
),
|
||||||
SizedBox(height: 120.h),
|
SizedBox(height: 120.h),
|
||||||
Container(
|
Container(
|
||||||
width: 1.sw,
|
width: 1.sw,
|
||||||
height: 50.h,
|
height: 50.h,
|
||||||
// padding: EdgeInsets.only(left: 30.w, right: 30.w, top: 10.h, bottom: 10.h),
|
// padding: EdgeInsets.only(left: 30.w, right: 30.w, top: 10.h, bottom: 10.h),
|
||||||
margin: EdgeInsets.only(left: 15.w, right: 15.w, top: 10.h, bottom: 10.h),
|
margin: EdgeInsets.only(
|
||||||
|
left: 15.w, right: 15.w, top: 10.h, bottom: 10.h),
|
||||||
// color: AppColors.blackColor,
|
// color: AppColors.blackColor,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: AppColors.blackColor,
|
color: AppColors.blackColor,
|
||||||
borderRadius: BorderRadius.circular(10.w),
|
borderRadius: BorderRadius.circular(10.w),
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Obx(() => Text(state.ifConnectScuess.value ? "已连接到锁,请将卡靠近锁的读卡区" : "尝试连接设备...", style:TextStyle(color: Colors.white, fontSize: 24.sp)))
|
child: Obx(() => Text(
|
||||||
),
|
state.ifConnectScuess.value
|
||||||
|
? "已连接到锁,请将卡靠近锁的读卡区"
|
||||||
|
: "尝试连接设备...",
|
||||||
|
style: TextStyle(color: Colors.white, fontSize: 24.sp)))),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user