|
|
@@ -7,9 +7,9 @@ import 'package:flutter/material.dart';
|
|
|
import 'package:flutter/services.dart';
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
import 'package:get/get.dart';
|
|
|
+import 'package:lottie/lottie.dart';
|
|
|
|
|
|
import '../../resource/assets.gen.dart';
|
|
|
-import '../../widget/frame_animation_view.dart';
|
|
|
|
|
|
class RecordPage extends BasePage<RecordController> {
|
|
|
const RecordPage({super.key});
|
|
|
@@ -125,18 +125,10 @@ class RecordPage extends BasePage<RecordController> {
|
|
|
opacity:
|
|
|
controller.currentStatus.value == RecordStatus.recording ? 1 : 0,
|
|
|
duration: const Duration(milliseconds: 520),
|
|
|
- onEnd: () {
|
|
|
- if (controller.currentStatus.value != RecordStatus.recording) {
|
|
|
- controller.frameAnimationController.stop();
|
|
|
- }
|
|
|
- },
|
|
|
- child: FrameAnimationView(
|
|
|
- controller: controller.frameAnimationController,
|
|
|
- framePath: 'assets/anim/anim_recording.zip',
|
|
|
- speed: 1,
|
|
|
- width: 360.w,
|
|
|
- height: 180.w,
|
|
|
- ),
|
|
|
+ child: SizedBox(
|
|
|
+ width: 360.w,
|
|
|
+ height: 180.w,
|
|
|
+ child: Lottie.asset(Assets.anim.animRecordingLottie)),
|
|
|
);
|
|
|
});
|
|
|
}
|