diff --git a/lib/widgets/blob_view.dart b/lib/widgets/blob_view.dart index 3548855..1f6dae7 100644 --- a/lib/widgets/blob_view.dart +++ b/lib/widgets/blob_view.dart @@ -1,7 +1,6 @@ import 'dart:convert'; import 'package:flutter/cupertino.dart'; import 'package:flutter_highlight/theme_map.dart'; -import 'package:flutter_svg/flutter_svg.dart'; import 'package:git_touch/models/code.dart'; import 'package:git_touch/models/theme.dart'; import 'package:git_touch/widgets/markdown_view.dart'; @@ -41,10 +40,6 @@ class BlobView extends StatelessWidget { return base64Text == null ? Image.network(networkUrl) : Image.memory(base64.decode(base64Text)); - case 'svg': - return base64Text == null - ? SvgPicture.network(networkUrl) - : SvgPicture.memory(base64.decode(base64Text)); case 'md': case 'markdown': return Padding( diff --git a/lib/widgets/object_tree.dart b/lib/widgets/object_tree.dart index 596ce35..1402acc 100644 --- a/lib/widgets/object_tree.dart +++ b/lib/widgets/object_tree.dart @@ -68,6 +68,7 @@ class ObjectTree extends StatelessWidget { 'pdf', 'docx', 'doc', 'pptx', 'ppt', 'xlsx', 'xls', // Fonts 'ttf', 'otf', 'eot', 'woff', 'woff2', + 'svg', ].contains(item.name.ext) ? item.downloadUrl : item.url,