fix提测问题:指纹添加成功后,指纹图标异常问题
This commit is contained in:
parent
ea23b0657d
commit
3feba32a08
BIN
images/main/icon_addFingerprint_fingerprint_six.png
Normal file
BIN
images/main/icon_addFingerprint_fingerprint_six.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 308 KiB |
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
@ -17,7 +16,8 @@ class AddFingerprintPage extends StatefulWidget {
|
|||||||
State<AddFingerprintPage> createState() => _AddFingerprintPageState();
|
State<AddFingerprintPage> createState() => _AddFingerprintPageState();
|
||||||
}
|
}
|
||||||
|
|
||||||
class _AddFingerprintPageState extends State<AddFingerprintPage> with RouteAware {
|
class _AddFingerprintPageState extends State<AddFingerprintPage>
|
||||||
|
with RouteAware {
|
||||||
final logic = Get.put(AddFingerprintLogic());
|
final logic = Get.put(AddFingerprintLogic());
|
||||||
final state = Get.find<AddFingerprintLogic>().state;
|
final state = Get.find<AddFingerprintLogic>().state;
|
||||||
|
|
||||||
@ -26,7 +26,8 @@ class _AddFingerprintPageState extends State<AddFingerprintPage> with RouteAware
|
|||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: Colors.white,
|
backgroundColor: Colors.white,
|
||||||
appBar: TitleAppBar(
|
appBar: TitleAppBar(
|
||||||
barTitle: "${TranslationLoader.lanKeys!.addTip!.tr}${TranslationLoader.lanKeys!.fingerprint!.tr}",
|
barTitle:
|
||||||
|
"${TranslationLoader.lanKeys!.addTip!.tr}${TranslationLoader.lanKeys!.fingerprint!.tr}",
|
||||||
haveBack: true,
|
haveBack: true,
|
||||||
backgroundColor: AppColors.mainColor),
|
backgroundColor: AppColors.mainColor),
|
||||||
body: ListView(
|
body: ListView(
|
||||||
@ -49,7 +50,8 @@ class _AddFingerprintPageState extends State<AddFingerprintPage> with RouteAware
|
|||||||
// TranslationLoader.lanKeys!.lightTouchScreenTip!.tr,
|
// TranslationLoader.lanKeys!.lightTouchScreenTip!.tr,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
maxLines: null,
|
maxLines: null,
|
||||||
style: TextStyle(fontSize: 24.sp, fontWeight: FontWeight.w600),
|
style: TextStyle(
|
||||||
|
fontSize: 24.sp, fontWeight: FontWeight.w600),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -77,7 +79,8 @@ class _AddFingerprintPageState extends State<AddFingerprintPage> with RouteAware
|
|||||||
// TranslationLoader.lanKeys!.lightTouchScreenTip!.tr,
|
// TranslationLoader.lanKeys!.lightTouchScreenTip!.tr,
|
||||||
textAlign: TextAlign.center,
|
textAlign: TextAlign.center,
|
||||||
maxLines: null,
|
maxLines: null,
|
||||||
style: TextStyle(fontSize: 24.sp, fontWeight: FontWeight.w600),
|
style: TextStyle(
|
||||||
|
fontSize: 24.sp, fontWeight: FontWeight.w600),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -86,11 +89,13 @@ class _AddFingerprintPageState extends State<AddFingerprintPage> with RouteAware
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
height: 100.h,
|
height: 100.h,
|
||||||
),
|
),
|
||||||
Obx(() => Image.asset(
|
Obx(
|
||||||
|
() => Image.asset(
|
||||||
getIconNumber(state.regIndex.value),
|
getIconNumber(state.regIndex.value),
|
||||||
width: 185.w,
|
width: 185.w,
|
||||||
height: 295.h,
|
height: 295.h,
|
||||||
),),
|
),
|
||||||
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: 120.h,
|
height: 120.h,
|
||||||
),
|
),
|
||||||
@ -134,8 +139,11 @@ class _AddFingerprintPageState extends State<AddFingerprintPage> with RouteAware
|
|||||||
case 4:
|
case 4:
|
||||||
iconPath = 'images/main/icon_addFingerprint_fingerprint_five.png';
|
iconPath = 'images/main/icon_addFingerprint_fingerprint_five.png';
|
||||||
break;
|
break;
|
||||||
|
case 5:
|
||||||
|
iconPath = 'images/main/icon_addFingerprint_fingerprint_six.png';
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
iconPath = 'images/main/icon_addFingerprint_fingerprint_four.png';
|
iconPath = 'images/main/icon_addFingerprint_fingerprint_six.png';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return iconPath;
|
return iconPath;
|
||||||
@ -192,5 +200,4 @@ class _AddFingerprintPageState extends State<AddFingerprintPage> with RouteAware
|
|||||||
|
|
||||||
state.ifCurrentScreen.value = false;
|
state.ifCurrentScreen.value = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user