|
@@ -454,16 +454,18 @@ class _MeasureMainViewState extends State<MeasureMainView> {
|
|
|
),
|
|
|
if (canShowAI && !measureHandler.fullScreenState) ...[
|
|
|
Obx(() {
|
|
|
- if (aiPatintController.state.ifShowAi) {
|
|
|
- return SizedBox(
|
|
|
+ return Visibility(
|
|
|
+ visible: aiPatintController.state.ifShowAi,
|
|
|
+ maintainState: true,
|
|
|
+ maintainAnimation: true,
|
|
|
+ maintainSize: true,
|
|
|
+ child: SizedBox(
|
|
|
width: 200,
|
|
|
child: AIPaintInfoReslut(
|
|
|
playerController as VidPlayerController,
|
|
|
),
|
|
|
- );
|
|
|
- } else {
|
|
|
- return const SizedBox();
|
|
|
- }
|
|
|
+ ),
|
|
|
+ );
|
|
|
})
|
|
|
]
|
|
|
],
|