diff --git a/ohos/testcamera/lib/CameraPage.dart b/ohos/testcamera/lib/CameraPage.dart index b8a1404e769479acb323a2256ff72477dec8888c..9bf592daf7e0e00fac5d6673a6300515c147bf8c 100644 --- a/ohos/testcamera/lib/CameraPage.dart +++ b/ohos/testcamera/lib/CameraPage.dart @@ -15,6 +15,7 @@ import 'package:flutter/material.dart'; import 'package:flutter/services.dart'; +import 'dart:math' as math; class CameraPage extends StatefulWidget { const CameraPage({super.key}); @@ -73,10 +74,19 @@ class _CameraPageState extends State { appBar: AppBar( title: Text("daex_texture"), ), - body: Container( - height: 500, - width: 500, - child: body, + body: AspectRatio( + aspectRatio: 1, + child:Transform.rotate( + angle: 90 * math.pi / 180, + child: Container( + color: Colors.white, + height: 500, + width: 500, + child: Center( + child: body, + ), + ), + ), ), ); } diff --git a/ohos/testcamera/ohos/entry/src/ohosTest/ets/test/Ability.test.ets b/ohos/testcamera/ohos/entry/src/ohosTest/ets/test/Ability.test.ets index 25d4c71ff3cd584f5d64f6f8c0ac864928c234c4..741f7eb8513f725019f3278db6c0467c5e4f27c8 100644 --- a/ohos/testcamera/ohos/entry/src/ohosTest/ets/test/Ability.test.ets +++ b/ohos/testcamera/ohos/entry/src/ohosTest/ets/test/Ability.test.ets @@ -20,7 +20,7 @@ export default function abilityTest() { describe('ActsAbilityTest', function () { // Defines a test suite. Two parameters are supported: test suite name and test suite function. beforeAll(function () { - // Presets an action, which is performed only once before all test cases of the test suite start. + // Presets an action, which is performed only once before all test cases of the test suite start . // This API supports only one parameter: preset action function. }) beforeEach(function () {