fix:图传页面兼容640*480不旋转的视频
This commit is contained in:
parent
0105a3ca72
commit
b61aceeac9
@ -55,13 +55,22 @@ class _ImageTransmissionPageState extends State<ImageTransmissionPage>
|
|||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
String handlerAppBarTitle() {
|
||||||
|
if (startChartManage.rotateAngle == 0 &&
|
||||||
|
startChartManage.videoWidth == 640 &&
|
||||||
|
startChartManage.videoHeight == 480) {
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
return '图传'.tr;
|
||||||
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: AppColors.mainBackgroundColor,
|
backgroundColor: AppColors.mainBackgroundColor,
|
||||||
resizeToAvoidBottomInset: false,
|
resizeToAvoidBottomInset: false,
|
||||||
appBar: TitleAppBar(
|
appBar: TitleAppBar(
|
||||||
barTitle: '图传'.tr,
|
barTitle: handlerAppBarTitle(),
|
||||||
haveBack: true,
|
haveBack: true,
|
||||||
backgroundColor: AppColors.mainColor,
|
backgroundColor: AppColors.mainColor,
|
||||||
backAction: () {
|
backAction: () {
|
||||||
@ -142,7 +151,7 @@ class _ImageTransmissionPageState extends State<ImageTransmissionPage>
|
|||||||
borderRadius: BorderRadius.circular(30.h),
|
borderRadius: BorderRadius.circular(30.h),
|
||||||
child: Container(
|
child: Container(
|
||||||
width: barWidth,
|
width: barWidth,
|
||||||
height: double.infinity,
|
// height: double.infinity,
|
||||||
child: RotatedBox(
|
child: RotatedBox(
|
||||||
quarterTurns: startChartManage.rotateAngle ~/ 90,
|
quarterTurns: startChartManage.rotateAngle ~/ 90,
|
||||||
child: RawImage(
|
child: RawImage(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user