reason

update

......@@ -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
......
......@@ -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>[
......