Fix issue with showing toast
This commit is contained in:
parent
bf5b389f4b
commit
ccc635c663
|
@ -2,13 +2,13 @@ import 'package:cached_network_image/cached_network_image.dart';
|
|||
import 'package:chewie/chewie.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:fluttertoast/fluttertoast.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:photos/core/cache/thumbnail_cache.dart';
|
||||
import 'package:photos/core/constants.dart';
|
||||
import 'package:photos/models/file.dart';
|
||||
import 'package:photos/ui/video_controls.dart';
|
||||
import 'package:photos/utils/toast_util.dart';
|
||||
import 'package:toast/toast.dart';
|
||||
import 'package:video_player/video_player.dart';
|
||||
|
||||
import 'loading_widget.dart';
|
||||
|
@ -37,7 +37,7 @@ class _VideoWidgetState extends State<VideoWidget> {
|
|||
_logger.warning(_videoPlayerController.value.errorDescription);
|
||||
showToast(
|
||||
"The video has not been processed yet. Downloading the original one...",
|
||||
toastLength: Toast.LENGTH_LONG);
|
||||
toastLength: Toast.LENGTH_SHORT);
|
||||
_setVideoPlayerController(widget.file.getRemoteUrl());
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue