Reason Pun

清理了视频录制页面按钮(可通过此次提交恢复)

: 更改为相册图标
......@@ -370,47 +370,21 @@ class _PoemRecordVideoPageState extends State<PoemRecordVideoPage>
),
),
InkWell(
onTap: _imageFile != null || _videoFile != null
? () {
Navigator.of(context).push(
MaterialPageRoute(
builder: (context) => PreviewScreen(
imageFile: _imageFile!,
fileList: allFileList,
),
),
);
}
: null,
child: Container(
width: 60,
height: 60,
decoration: BoxDecoration(
color: Colors.black,
borderRadius: BorderRadius.circular(10.0),
border: Border.all(
onTap: () {},
child: Stack(
alignment: Alignment.center,
children: const [
Icon(
Icons.circle,
color: Colors.black38,
size: 60,
),
Icon(
Icons.photo_album,
color: Colors.white,
width: 2,
size: 30,
),
image: _imageFile != null
? DecorationImage(
image: FileImage(_imageFile!),
fit: BoxFit.cover,
)
: null,
),
child: videoController != null &&
videoController!.value.isInitialized
? ClipRRect(
borderRadius:
BorderRadius.circular(8.0),
child: AspectRatio(
aspectRatio: videoController!
.value.aspectRatio,
child: VideoPlayer(videoController!),
),
)
: Container(),
],
),
),
],
......