Showing
1 changed file
with
13 additions
and
39 deletions
... | @@ -370,47 +370,21 @@ class _PoemRecordVideoPageState extends State<PoemRecordVideoPage> | ... | @@ -370,47 +370,21 @@ class _PoemRecordVideoPageState extends State<PoemRecordVideoPage> |
370 | ), | 370 | ), |
371 | ), | 371 | ), |
372 | InkWell( | 372 | InkWell( |
373 | - onTap: _imageFile != null || _videoFile != null | 373 | + onTap: () {}, |
374 | - ? () { | 374 | + child: Stack( |
375 | - Navigator.of(context).push( | 375 | + alignment: Alignment.center, |
376 | - MaterialPageRoute( | 376 | + children: const [ |
377 | - builder: (context) => PreviewScreen( | 377 | + Icon( |
378 | - imageFile: _imageFile!, | 378 | + Icons.circle, |
379 | - fileList: allFileList, | 379 | + color: Colors.black38, |
380 | - ), | 380 | + size: 60, |
381 | - ), | 381 | + ), |
382 | - ); | 382 | + Icon( |
383 | - } | 383 | + Icons.photo_album, |
384 | - : null, | ||
385 | - child: Container( | ||
386 | - width: 60, | ||
387 | - height: 60, | ||
388 | - decoration: BoxDecoration( | ||
389 | - color: Colors.black, | ||
390 | - borderRadius: BorderRadius.circular(10.0), | ||
391 | - border: Border.all( | ||
392 | color: Colors.white, | 384 | color: Colors.white, |
393 | - width: 2, | 385 | + size: 30, |
394 | ), | 386 | ), |
395 | - image: _imageFile != null | 387 | + ], |
396 | - ? DecorationImage( | ||
397 | - image: FileImage(_imageFile!), | ||
398 | - fit: BoxFit.cover, | ||
399 | - ) | ||
400 | - : null, | ||
401 | - ), | ||
402 | - child: videoController != null && | ||
403 | - videoController!.value.isInitialized | ||
404 | - ? ClipRRect( | ||
405 | - borderRadius: | ||
406 | - BorderRadius.circular(8.0), | ||
407 | - child: AspectRatio( | ||
408 | - aspectRatio: videoController! | ||
409 | - .value.aspectRatio, | ||
410 | - child: VideoPlayer(videoController!), | ||
411 | - ), | ||
412 | - ) | ||
413 | - : Container(), | ||
414 | ), | 388 | ), |
415 | ), | 389 | ), |
416 | ], | 390 | ], | ... | ... |
-
Please register or login to post a comment