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
2022-01-02 09:38:43 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
91c9f8de3ce215fea9d1af1fcc9c5a637efb7664
91c9f8de
1 parent
174864bd
update
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
12 deletions
lib/tiktok/widgets/tiktok_scaffold.dart
lib/tiktok/widgets/tiktok_video.dart
lib/tiktok/widgets/tiktok_scaffold.dart
View file @
91c9f8d
...
...
@@ -86,7 +86,6 @@ class _TikTokScaffoldState extends State<TikTokScaffold>
late
Animation
<
double
>
animationY
;
double
offsetX
=
0.0
;
double
offsetY
=
0.0
;
// int currentIndex = 0;
double
inMiddle
=
0
;
@override
...
...
lib/tiktok/widgets/tiktok_video.dart
View file @
91c9f8d
...
...
@@ -47,7 +47,7 @@ class TikTokVideoPage extends StatelessWidget {
Widget
rightButtons
=
rightButtonColumn
??
Container
();
Widget
leftPoem
=
leftPoemArea
??
Container
();
// 视频加载的动画
// Widget videoLoading = VideoLoadingPlaceHolder(tag: tag
);
Widget
videoLoading
=
VideoLoadingPlaceHolder
(
tag:
tag
!
);
// 视频播放页
Widget
videoContainer
=
Stack
(
children:
<
Widget
>[
...
...
@@ -70,6 +70,7 @@ class TikTokVideoPage extends StatelessWidget {
width:
double
.
infinity
,
),
),
// videoLoading, // TODO 加载动画需要修补
hidePauseIcon
?
Container
()
:
Container
(
...
...
@@ -121,16 +122,9 @@ class VideoLoadingPlaceHolder extends StatelessWidget {
@override
Widget
build
(
BuildContext
context
)
{
return
Container
(
decoration:
const
BoxDecoration
(
gradient:
LinearGradient
(
begin:
Alignment
.
topCenter
,
colors:
<
Color
>[
Colors
.
blue
,
Colors
.
green
,
],
),
),
return
SizedBox
(
height:
64.0
,
width:
64.0
,
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
center
,
children:
<
Widget
>[
...
...
Please
register
or
login
to post a comment