fix:图传页面兼容640*480不旋转的视频

This commit is contained in:
liyi 2025-06-10 09:26:28 +08:00
parent 0105a3ca72
commit b61aceeac9

View File

@ -55,13 +55,22 @@ class _ImageTransmissionPageState extends State<ImageTransmissionPage>
super.dispose();
}
String handlerAppBarTitle() {
if (startChartManage.rotateAngle == 0 &&
startChartManage.videoWidth == 640 &&
startChartManage.videoHeight == 480) {
return '';
}
return '图传'.tr;
}
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: AppColors.mainBackgroundColor,
resizeToAvoidBottomInset: false,
appBar: TitleAppBar(
barTitle: '图传'.tr,
barTitle: handlerAppBarTitle(),
haveBack: true,
backgroundColor: AppColors.mainColor,
backAction: () {
@ -142,7 +151,7 @@ class _ImageTransmissionPageState extends State<ImageTransmissionPage>
borderRadius: BorderRadius.circular(30.h),
child: Container(
width: barWidth,
height: double.infinity,
// height: double.infinity,
child: RotatedBox(
quarterTurns: startChartManage.rotateAngle ~/ 90,
child: RawImage(