Browse Source

图片限高

panhui 7 years ago
parent
commit
85c8dfa13c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/widget/VideoWidget.dart

+ 1 - 1
lib/widget/VideoWidget.dart

@@ -73,7 +73,7 @@ class VideoWidgetState extends State<VideoWidget> {
       children: <Widget>[
         isVideo
             ? _playContainer()
-            : Image.network(widget.videoSrc, width: double.infinity)
+            : Image.network(widget.videoSrc, width: double.infinity,height: 210,fit: BoxFit.cover,)
       ],
     ));
   }