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