viewer: improved handling of negative size
This commit is contained in:
parent
2d50465ce6
commit
dc287e8667
1 changed files with 7 additions and 7 deletions
|
@ -126,14 +126,14 @@ class _EntryPageViewState extends State<EntryPageView> {
|
||||||
animation: entry.imageChangeNotifier,
|
animation: entry.imageChangeNotifier,
|
||||||
builder: (context, child) {
|
builder: (context, child) {
|
||||||
Widget child;
|
Widget child;
|
||||||
if (entry.isVideo) {
|
if (entry.isSvg) {
|
||||||
if (!entry.displaySize.isEmpty) {
|
|
||||||
child = _buildVideoView();
|
|
||||||
}
|
|
||||||
} else if (entry.isSvg) {
|
|
||||||
child = _buildSvgView();
|
child = _buildSvgView();
|
||||||
} else if (entry.canDecode) {
|
} else if (!entry.displaySize.isEmpty) {
|
||||||
child = _buildRasterView();
|
if (entry.isVideo) {
|
||||||
|
child = _buildVideoView();
|
||||||
|
} else if (entry.canDecode) {
|
||||||
|
child = _buildRasterView();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
child ??= ErrorView(
|
child ??= ErrorView(
|
||||||
entry: entry,
|
entry: entry,
|
||||||
|
|
Loading…
Reference in a new issue