fix:取消截图时必须接听的逻辑
This commit is contained in:
parent
9c4cea5224
commit
de3722292e
@ -61,7 +61,7 @@ class _ImageTransmissionPageState extends State<ImageTransmissionPage>
|
|||||||
barTitle: '图传'.tr,
|
barTitle: '图传'.tr,
|
||||||
haveBack: true,
|
haveBack: true,
|
||||||
backgroundColor: AppColors.mainColor,
|
backgroundColor: AppColors.mainColor,
|
||||||
backAction: (){
|
backAction: () {
|
||||||
logic.udpHangUpAction();
|
logic.udpHangUpAction();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
@ -183,10 +183,7 @@ class _ImageTransmissionPageState extends State<ImageTransmissionPage>
|
|||||||
icon: Icons.camera_alt,
|
icon: Icons.camera_alt,
|
||||||
color: Colors.blue,
|
color: Colors.blue,
|
||||||
onTap: () async {
|
onTap: () async {
|
||||||
if (state.talkStatus.value ==
|
await logic.captureAndSavePng();
|
||||||
TalkStatus.answeredSuccessfully) {
|
|
||||||
await logic.captureAndSavePng();
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
@ -200,7 +197,10 @@ class _ImageTransmissionPageState extends State<ImageTransmissionPage>
|
|||||||
outerColor: Colors.amber.withOpacity(0.15),
|
outerColor: Colors.amber.withOpacity(0.15),
|
||||||
sliderButtonIcon: Icon(Icons.lock, color: Colors.white, size: 40.w),
|
sliderButtonIcon: Icon(Icons.lock, color: Colors.white, size: 40.w),
|
||||||
text: '滑动解锁',
|
text: '滑动解锁',
|
||||||
textStyle: TextStyle(fontSize: 26.sp, color: Colors.black54, fontWeight: FontWeight.bold),
|
textStyle: TextStyle(
|
||||||
|
fontSize: 26.sp,
|
||||||
|
color: Colors.black54,
|
||||||
|
fontWeight: FontWeight.bold),
|
||||||
onSubmit: () {
|
onSubmit: () {
|
||||||
// TODO: 实现滑动解锁逻辑
|
// TODO: 实现滑动解锁逻辑
|
||||||
logic.remoteOpenLock();
|
logic.remoteOpenLock();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user