From 49db168f6d8db87f1969bcdb65d2d77ebcfe1bd9 Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Mon, 2 Sep 2019 18:15:02 +0800 Subject: [PATCH] build: upgrade flutter_highlight --- lib/screens/object.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/screens/object.dart b/lib/screens/object.dart index f85ccec..e9b9e33 100644 --- a/lib/screens/object.dart +++ b/lib/screens/object.dart @@ -111,7 +111,7 @@ class ObjectScreen extends StatelessWidget { Widget _buildBlob(payload) { // FIXME: - return Highlight( + return HighlightView( payload['text'], language: extname.isEmpty ? 'plaintext' : extname, theme: githubTheme, diff --git a/pubspec.yaml b/pubspec.yaml index 7e18f83..bfff20c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -29,7 +29,7 @@ dependencies: github_contributions: ^0.1.1 flutter_svg: ^0.13.0 launch_review: ^2.0.0 - flutter_highlight: ^0.2.1 + flutter_highlight: ^0.3.0 timeago: ^2.0.18 primer: git: