Toggle navigation
Toggle navigation
This project
Loading...
Sign in
OnePoem
/
OnePoem-App
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Reason Pun
2022-01-25 11:23:01 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
211939762b9a031544954ba018c9a25811e8a44d
21193976
1 parent
4c84b1aa
清理了视频录制页面按钮(可通过此次提交恢复)
: 更改为相册图标
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
39 deletions
lib/poem/page/poem_record_video.dart
lib/poem/page/poem_record_video.dart
View file @
2119397
...
...
@@ -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
(),
],
),
),
],
...
...
Please
register
or
login
to post a comment